aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/js/app.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/js/app.js b/app/js/app.js
index f207de6..b26a2a6 100644
--- a/app/js/app.js
+++ b/app/js/app.js
@@ -105,18 +105,18 @@ function loadDirectory(filePath) {
105} 105}
106 106
107function open(entry) { 107function open(entry) {
108 var path = encode(sanitize(app.path + '/' + entry.filePath)); 108 var path = sanitize(app.path + '/' + entry.filePath);
109 109
110 if (entry.isDirectory) { 110 if (entry.isDirectory) {
111 window.location.hash = path; 111 window.location.hash = path;
112 return; 112 return;
113 } 113 }
114 114
115 window.open(path); 115 window.open(encode(path));
116} 116}
117 117
118function up() { 118function up() {
119 window.location.hash = encode(sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/'))); 119 window.location.hash = sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/'));
120} 120}
121 121
122function upload() { 122function upload() {