diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 4e1eb7f3d..c7a3f146e 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -361,7 +361,8 @@ define([ }; var fixFileName = common.fixFileName = function (filename) { - return filename.replace(/ /g, '-').replace(/\//g, '_'); + return filename.replace(/ /g, '-').replace(/[\/\?]/g, '_') + .replace(/_+/g, '_'); }; var importContent = common.importContent = function (type, f) {