Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Fixes #1499
  • Loading branch information...
commit 5a0cbdffffe05d6247946157be65c020e508b518 1 parent ee93ec8
@arantius arantius authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/remoteScript.js
View
2  modules/remoteScript.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.