[Filesystem] Allow for filepath separators to exist in relative path.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 24 Aug 2015 13:53:45 +0000 (15:53 +0200)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 24 Aug 2015 13:53:45 +0000 (15:53 +0200)
Fixes: TNEF-4356
[Verification] TCT pass rate (r35): 100% (289/289/0/0/0)

Change-Id: I976ce6e1e3a977b20f451ad65bee921b82bbaf9f
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/filesystem/js/common.js

index d53cacc0bd45f4f0c722fb8c9bc7c5567d59c68b..38f5a5811493cac3343263ed2cc966ccea77626a 100755 (executable)
@@ -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(':')) &&