Index: ui/file_manager/file_manager/common/js/mock_entry.js |
diff --git a/ui/file_manager/file_manager/common/js/mock_entry.js b/ui/file_manager/file_manager/common/js/mock_entry.js |
index 7f3515529380cb33e0652ba7f3bf13b0f86d1c67..290b11e7097580dab3269e71de5fb39706ba338b 100644 |
--- a/ui/file_manager/file_manager/common/js/mock_entry.js |
+++ b/ui/file_manager/file_manager/common/js/mock_entry.js |
@@ -109,7 +109,12 @@ MockEntry.prototype = { |
* @return {string} Fake URL. |
*/ |
MockEntry.prototype.toURL = function() { |
- return this.filesystem.rootURL + this.fullPath; |
+ var segments = this.fullPath.split('/'); |
+ for (var i = 0; i < segments.length; i++) { |
+ segments[i] = encodeURIComponent(segments[i]); |
+ } |
+ |
+ return this.filesystem.rootURL + segments.join('/'); |
}; |
/** |