From 33347354b9f4d2a49ffd7af3068da241bb9be1fd Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 25 Jul 2012 09:49:10 -0400 Subject: [PATCH] fixed bug in checkExtension function --- lib/cloudfunc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cloudfunc.js b/lib/cloudfunc.js index 901bcc69..a1e0dada 100644 --- a/lib/cloudfunc.js +++ b/lib/cloudfunc.js @@ -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);/* последнее вхождение расширения*/