Better handle this ourselves instead of angular

This commit is contained in:
Johannes Zellner
2021-03-02 16:31:31 +01:00
parent 5f961bada4
commit a79c435bdc

View File

@@ -116,7 +116,10 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
else if (v === '..') a.pop();
else a.push(v);
return a;
}, []).join('/');
}, []).map(function (p) {
// small detour to safely handle special characters and whitespace
return encodeURIComponent(decodeURIComponent(p));
}).join('/');
return filePath;
}