X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjs%2Ffilebrowser.js;h=d35e4866fa5a9fceab5ef515261e07633dcfbd74;hb=39e820e6a3ffaaec82f47b493c1b6b45f768a303;hp=1faef4acc4f23a88d9185270404fc76f7ac9fa5f;hpb=4c4ed63dca13cc0382af9020e69980c63f988b47;p=friendica.git diff --git a/view/js/filebrowser.js b/view/js/filebrowser.js index 1faef4acc4..d35e4866fa 100644 --- a/view/js/filebrowser.js +++ b/view/js/filebrowser.js @@ -2,7 +2,7 @@ /** * Filebrowser - Friendica Communications Server * - * Copyright (c) 2010-2015 the Friendica Project + * Copyright (c) 2010-2021, the Friendica project * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by @@ -77,8 +77,7 @@ var FileBrowser = { $(".folders a, .path a").on("click", function(e){ e.preventDefault(); - var url = baseurl + "/fbrowser/" + FileBrowser.type + "/" + this.dataset.folder + "?mode=minimal" + location['hash']; - location.href = url; + location.href = baseurl + "/fbrowser/" + FileBrowser.type + "/" + encodeURIComponent(this.dataset.folder) + "?mode=minimal" + location['hash']; }); $(".photo-album-photo-link").on('click', function(e){