diff options
author | Olivier Paroz <github@oparoz.com> | 2015-03-31 00:34:30 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-03-31 00:34:30 +0300 |
commit | f7c60366adaa97af4bcc39e475573454cb478a22 (patch) | |
tree | ccc900b1fae073597ea2c3c61617ce4cdbeec196 /js/gallerybutton.js | |
parent | a505c10b6a5b0f945ae36d1db82fa5dff201ecfc (diff) |
Encode more characters to prevent problems with special characters in filenames
Diffstat (limited to 'js/gallerybutton.js')
-rw-r--r-- | js/gallerybutton.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 () { |