diff --git a/static/js/utils.js b/static/js/utils.js index a94bed6c1..574e4a87e 100644 --- a/static/js/utils.js +++ b/static/js/utils.js @@ -2659,8 +2659,9 @@ pandora.openURL = function(url) { }; pandora.safeDocumentName = function(name) { - ['?', '#', '%'].forEach(function(c) { - name = name.replace(c, '_'); + ['\\?', '#', '%', '/'].forEach(function(c) { + var r = new RegExp(c, 'g') + name = name.replace(r, '_'); }) return name; };