fixed bug in checkExtension function

This commit is contained in:
coderaiser 2012-07-25 09:49:10 -04:00
parent 1bc378339e
commit 33347354b9

View file

@ -280,7 +280,7 @@ CloudFunc.checkExtension=function(pName,pExt)
* длинны расширения -
* имеет смысл продолжать
*/
if (typeof pExt === 'string' &&
if (typeof pExt == 'string' &&
pName.length > pExt.length) {
var lLength=pName.length; /* длина имени*/
var lExtNum=pName.lastIndexOf(pExt);/* последнее вхождение расширения*/