Skip to content

Commit

Permalink
The script path needs to be encoded for redirects in production. #200
Browse files Browse the repository at this point in the history
  • Loading branch information
sizzlemctwizzle committed Jun 25, 2014
1 parent 81f13d2 commit 3d646e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/modelParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var getScriptPageUrl = function (script) {
var isLib = script.isLib || false;
var scriptPath = script.installName
.replace(isLib ? /\.js$/ : /\.user\.js$/, '');
return (isLib ? '/libs/' : '/scripts/') + scriptPath;
return (isLib ? '/libs/' : '/scripts/') + encodeURI(scriptPath);
};

var getScriptViewSourcePageUrl = function (script) {
Expand Down

0 comments on commit 3d646e1

Please sign in to comment.