From 14af1026dee4b30d625428d12ec45d63d8624c6e Mon Sep 17 00:00:00 2001 From: Pawel Andruszkiewicz Date: Mon, 9 Nov 2015 09:11:44 +0100 Subject: [PATCH] [File] Strip parameters before resolving file URI. [Verification] Code compiles, pass rate 84/140. Change-Id: I153270e7a625b7c158987ec9f776b2376cf2c09c Signed-off-by: Pawel Andruszkiewicz --- src/file/js/resolveLocalFileSystemURI.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/file/js/resolveLocalFileSystemURI.js b/src/file/js/resolveLocalFileSystemURI.js index 3faa520..261ad9e 100644 --- a/src/file/js/resolveLocalFileSystemURI.js +++ b/src/file/js/resolveLocalFileSystemURI.js @@ -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()); -- 2.34.1