Commit 5f43935e by Johannes

ensure we deal with encoding of paths correctly on the client

1 parent 94ff5399
Showing with 3 additions and 3 deletions
......@@ -105,18 +105,18 @@ function loadDirectory(filePath) {
}
function open(entry) {
var path = encode(sanitize(app.path + '/' + entry.filePath));
var path = sanitize(app.path + '/' + entry.filePath);
if (entry.isDirectory) {
window.location.hash = path;
return;
}
window.open(path);
window.open(encode(path));
}
function up() {
window.location.hash = encode(sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/')));
window.location.hash = sanitize(app.path.split('/').slice(0, -1).filter(function (p) { return !!p; }).join('/'));
}
function upload() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!