From 1d9e43b551c73614fb87a07dc1ea4a35bf70f1c4 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 2 Dec 2019 21:01:14 +0100 Subject: [PATCH] % is also not ok in pdf names --- static/js/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/js/utils.js b/static/js/utils.js index a4de127d..52cef4e8 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -2641,7 +2641,9 @@ pandora.openURL = function(url) { }; pandora.safeDocumentName = function(name) { - name = name.replace('?', '_').replace('#', '_'); + ['?', '#', '%'].forEach(function(c) { + name = name.replace(c, '_'); + }) return name; };