diff options
author | Ananya Sen | 2012-03-22 10:47:29 -0700 |
---|---|---|
committer | Ananya Sen | 2012-03-22 10:47:29 -0700 |
commit | 94bc7b61951677b04213ce18b0ec3e72da5aa8cd (patch) | |
tree | 5c43c62482416683d7f2cc5c2c25a86882d47419 | |
parent | 7a7ac1d6479155760d99b7ecdf5a8d1f63e25f24 (diff) | |
download | ninja-94bc7b61951677b04213ce18b0ec3e72da5aa8cd.tar.gz |
IKNINJA-1367 - if filename contains #, then encode # so that the create URI path includes the full filename
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
-rwxr-xr-x | js/io/system/coreioapi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/io/system/coreioapi.js b/js/io/system/coreioapi.js index f428a229..00ab6ac1 100755 --- a/js/io/system/coreioapi.js +++ b/js/io/system/coreioapi.js | |||
@@ -217,7 +217,7 @@ exports.CoreIoApi = Montage.create(Component, { | |||
217 | value: function(serviceURL, path) { | 217 | value: function(serviceURL, path) { |
218 | var urlOut = path.replace(/\\/g,"/"); | 218 | var urlOut = path.replace(/\\/g,"/"); |
219 | urlOut = urlOut.replace(/:/g,""); | 219 | urlOut = urlOut.replace(/:/g,""); |
220 | urlOut = encodeURI(urlOut); | 220 | urlOut = encodeURIComponent(urlOut); |
221 | //add leading / if not already there | 221 | //add leading / if not already there |
222 | if((urlOut.length > 0) && (urlOut.charAt(0) !== "/")){ | 222 | if((urlOut.length > 0) && (urlOut.charAt(0) !== "/")){ |
223 | urlOut = "/" + urlOut; | 223 | urlOut = "/" + urlOut; |