From f7c60366adaa97af4bcc39e475573454cb478a22 Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Mon, 30 Mar 2015 23:34:30 +0200 Subject: Encode more characters to prevent problems with special characters in filenames --- js/gallerybutton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/gallerybutton.js') diff --git a/js/gallerybutton.js b/js/gallerybutton.js index 8d69a572..e6d7dd90 100644 --- a/js/gallerybutton.js +++ b/js/gallerybutton.js @@ -40,7 +40,7 @@ GalleryButton.buildUrl = function (dir) { params.token = token; tokenPath = 's/{token}'; } - GalleryButton.url = OC.generateUrl('apps/galleryplus/' + tokenPath, params) + '#' + dir; + GalleryButton.url = OC.generateUrl('apps/galleryplus/' + tokenPath, params) + '#' + encodeURIComponent(dir); }; GalleryButton.hijackShare = function () { -- cgit v1.2.3