From 007b9394c742511c8105398b730bc2cbe90fff42 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 29 Nov 2019 20:45:10 +0100 Subject: [PATCH] fix image urls --- static/js/document.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/document.js b/static/js/document.js index a13332d2..1f517fab 100644 --- a/static/js/document.js +++ b/static/js/document.js @@ -80,7 +80,7 @@ pandora.ui.document = function() { imageHeight: item.dimensions[1], imagePreviewURL: pandora.getMediaURL('/documents/' + item.id + '/256p.jpg?' + item.modified), imageURL: pandora.getMediaURL('/documents/' + item.id + '/' - + item.title + '.' + item.extension + '?' + item.modified), + + pandora.safePDFName(item.title) + '.' + item.extension + '?' + item.modified), imageWidth: item.dimensions[0], width: that.width() }).css({