Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-03-31 00:34:30 +0300
committerOlivier Paroz <github@oparoz.com>2015-03-31 00:34:30 +0300
commitf7c60366adaa97af4bcc39e475573454cb478a22 (patch)
treeccc900b1fae073597ea2c3c61617ce4cdbeec196 /js/gallerybutton.js
parenta505c10b6a5b0f945ae36d1db82fa5dff201ecfc (diff)
Encode more characters to prevent problems with special characters in filenames
Diffstat (limited to 'js/gallerybutton.js')
-rw-r--r--js/gallerybutton.js2
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 () {