From c22fe8a50b849f71d54b92cf69e309694d24a4ca Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Mon, 24 Aug 2015 15:53:45 +0200 Subject: [PATCH] [Filesystem] Allow for filepath separators to exist in relative path. Fixes: TNEF-4356 [Verification] TCT pass rate (r35): 100% (289/289/0/0/0) Change-Id: I976ce6e1e3a977b20f451ad65bee921b82bbaf9f Signed-off-by: Pawel Andruszkiewicz --- src/filesystem/js/common.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filesystem/js/common.js b/src/filesystem/js/common.js index d53cacc0..38f5a581 100755 --- a/src/filesystem/js/common.js +++ b/src/filesystem/js/common.js @@ -222,8 +222,8 @@ var commonFS_ = (function() { }; function f_isCorrectRelativePath(relativePath) { - return ((-1 === relativePath.indexOf('/')) && - (-1 === relativePath.indexOf('\\')) && + return ((0 !== relativePath.indexOf('/')) && + (0 !== relativePath.indexOf('\\')) && (-1 === relativePath.indexOf('?')) && (-1 === relativePath.indexOf('*')) && (-1 === relativePath.indexOf(':')) && -- 2.34.1