[File] Strip parameters before resolving file URI.
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 9 Nov 2015 08:11:44 +0000 (09:11 +0100)
committerPawel Andruszkiewicz <p.andruszkie@samsung.com>
Mon, 9 Nov 2015 08:11:44 +0000 (09:11 +0100)
[Verification] Code compiles, pass rate 84/140.

Change-Id: I153270e7a625b7c158987ec9f776b2376cf2c09c
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
src/file/js/resolveLocalFileSystemURI.js

index 3faa520..261ad9e 100644 (file)
@@ -21,6 +21,8 @@ cordova.define('cordova-plugin-file.tizen.resolveLocalFileSystemURI', function(r
 module.exports = {
   resolveLocalFileSystemURI: function(successCallback, errorCallback, args) {
     var path = args[0];
+    // fix for file.spec.10
+    path = path.split('?')[0];
 
     function onResolve(file) {
       var filesystem = rootsUtils.findFilesystem(file.toURI());