From ad6d5dd85044f6e231e59a81e4ceff0941b5844f Mon Sep 17 00:00:00 2001 From: j Date: Thu, 30 May 2019 16:16:10 +0200 Subject: [PATCH] fix document preview for documents with '?' in title --- static/js/documentDialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/documentDialog.js b/static/js/documentDialog.js index 8afacc37a..a8d1d581f 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 + '/' - + item.title + '.' + item.extension, + + item.title.replace('?', '_') + '.' + item.extension, width: dialogWidth, zoom: 'fit' })