From 96912f14b0ef45b596ac06aaa56b9ac6044ad5c7 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 1 Dec 2019 16:10:08 +0100 Subject: [PATCH] use pandora.safeDocumentName --- static/js/documentDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/documentDialog.js b/static/js/documentDialog.js index b2c17308..752bca35 100644 --- a/static/js/documentDialog.js +++ b/static/js/documentDialog.js @@ -196,7 +196,7 @@ pandora.ui.documentDialog = function(options) { ? pandora.user.ui.documents[item.id].position : 1, url: '/documents/' + item.id + '/' - + pandora.safePDFName(item.title + '.' + item.extension), + + pandora.safeDocumentName(item.title) + '.' + item.extension, width: dialogWidth, zoom: 'fit' }) @@ -211,7 +211,7 @@ pandora.ui.documentDialog = function(options) { 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.safeDocumentName(item.title) + '.' + item.extension + '?' + item.modified), imageWidth: item.dimensions[0], width: dialogWidth })