fixed bug in checkExtension function

This commit is contained in:
coderaiser 2012-07-25 09:49:10 -04:00
parent ed8668418b
commit 5a78c24b9c

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);/* последнее вхождение расширения*/