Commit 5f43935e by Johannes Zellner

ensure we deal with encoding of paths correctly on the client

parent 94ff5399
......@@ -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
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment