From 7a9e05975f1df51c1cb50239e74962446ab01b86 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Thu, 13 Sep 2018 00:25:48 -0700 Subject: [PATCH] Fix thumbnail paths with parenthesis in them Signed-off-by: James Ketrenos --- frontend/elements/photo-thumbnail.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/elements/photo-thumbnail.html b/frontend/elements/photo-thumbnail.html index 62283f8..be68908 100755 --- a/frontend/elements/photo-thumbnail.html +++ b/frontend/elements/photo-thumbnail.html @@ -84,7 +84,9 @@ thumbChanged: function(thumbpath, visible) { if (visible) { - this.style.backgroundImage = "url(" + encodeURI(thumbpath).replace(/'/g, "\\'") + ")"; + this.style.backgroundImage = "url(" + + encodeURI(thumbpath).replace(/'/g, "\\'").replace(/([\(\)])/g, "\\$1") + + ")"; } else { this.style.backgroundImage = ""; }