Permalink
Browse files

Turn "%20" to "_" in file names.

Fixes #1499
  • Loading branch information...
1 parent ee93ec8 commit 5a0cbdffffe05d6247946157be65c020e508b518 @arantius arantius committed Jan 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/remoteScript.js
View
@@ -31,7 +31,7 @@ function cleanFilename(aFilename, aDefault) {
var filename = (aFilename || aDefault).replace(
disallowedFilenameCharacters, '');
// Make whitespace readable.
- filename = filename.replace(/\s+/g, '_');
+ filename = filename.replace(/(\s|%20)+/g, '_');
// Ensure that it's something.
if (!filename) filename = aDefault || 'unknown';
return filename;

0 comments on commit 5a0cbdf

Please sign in to comment.