incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tim...@apache.org
Subject [7/48] js commit: fixed creating a dir with an encoded uri
Date Thu, 07 Jun 2012 20:40:43 GMT
fixed creating a dir with an encoded uri


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/58b97480
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/58b97480
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/58b97480

Branch: refs/heads/master
Commit: 58b974808abbdd53cd924385ab09214810d19e97
Parents: 75096bb
Author: Tim Kim <tim.kim@nitobi.com>
Authored: Mon Jun 4 11:44:36 2012 -0700
Committer: Tim Kim <tim.kim@nitobi.com>
Committed: Thu Jun 7 13:40:24 2012 -0700

----------------------------------------------------------------------
 .../plugin/playbook/resolveLocalFileSystemURI.js   |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/58b97480/lib/playbook/plugin/playbook/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/lib/playbook/plugin/playbook/resolveLocalFileSystemURI.js b/lib/playbook/plugin/playbook/resolveLocalFileSystemURI.js
index 259b398..eded5ab 100644
--- a/lib/playbook/plugin/playbook/resolveLocalFileSystemURI.js
+++ b/lib/playbook/plugin/playbook/resolveLocalFileSystemURI.js
@@ -36,6 +36,12 @@ module.exports = function(uri, successCallback, errorCallback) {
             fail(FileError.NOT_FOUND_ERR);
         }
     };
+
+    // decode uri if % char found
+    if(uri.indexOf('%')>=0){
+        uri = decodeURI(uri);
+    }
+
     // pop the parameters if any
     if(uri.indexOf('?')>=0){
         uri = uri.split('?')[0];


Mime
View raw message