fix document preview for documents with '?' in title

This commit is contained in:
j 2019-05-30 16:16:10 +02:00
parent cb1b61cc24
commit ad6d5dd850

View file

@ -196,7 +196,7 @@ pandora.ui.documentDialog = function(options) {
? pandora.user.ui.documents[item.id].position ? pandora.user.ui.documents[item.id].position
: 1, : 1,
url: '/documents/' + item.id + '/' url: '/documents/' + item.id + '/'
+ item.title + '.' + item.extension, + item.title.replace('?', '_') + '.' + item.extension,
width: dialogWidth, width: dialogWidth,
zoom: 'fit' zoom: 'fit'
}) })