% is also not ok in pdf names

This commit is contained in:
j 2019-12-02 21:01:14 +01:00
parent 565f0bb5fa
commit 1d9e43b551

View file

@ -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;
};