diff options
author | Olivier Paroz <github@oparoz.com> | 2015-09-08 03:13:03 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-09-24 11:18:37 +0300 |
commit | 3bef2d74c452ed3b673f0ac6c61c5714525856aa (patch) | |
tree | 3aea173531e35c64d4a8a01778e31b0448cba480 /js/galleryinfobox.js | |
parent | e531e99f44c13c51e0c2fac7bedf7b86109ba620 (diff) |
Sanitize markdown from gallery.cnf
Diffstat (limited to 'js/galleryinfobox.js')
-rw-r--r-- | js/galleryinfobox.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/js/galleryinfobox.js b/js/galleryinfobox.js index 2a3b0608..b4712237 100644 --- a/js/galleryinfobox.js +++ b/js/galleryinfobox.js @@ -63,7 +63,10 @@ */ _addContent: function (content) { try { - content = marked(content); + content = marked(content, { + gfm: false, + sanitize: true + }); } catch (exception) { content = t('gallery', 'Could not load the description: ' + exception.message); @@ -101,7 +104,10 @@ if (!$.isEmptyObject(this.albumInfo.copyright)) { try { - copyright = marked(this.albumInfo.copyright); + copyright = marked(this.albumInfo.copyright, { + gfm: false, + sanitize: true + }); } catch (exception) { copyright = t('gallery', |