Navigation Menu

Skip to content

Commit

Permalink
Use unicode-safe encoding of script ID in options URL.
Browse files Browse the repository at this point in the history
Refs #1732
  • Loading branch information
arantius committed May 3, 2013
1 parent 2aedc31 commit 8c0059e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/scriptprefs.js
@@ -1,6 +1,6 @@
Components.utils.import('resource://greasemonkey/util.js'); // ref'd in XUL

var gScriptId = atob(location.hash.substring(1));
var gScriptId = location.hash.substring(1);
var gScript = GM_util.getService().config.getMatchingScripts(function(script) {
return script.id == gScriptId;
})[0];
Expand Down
2 changes: 1 addition & 1 deletion modules/addons4.js
Expand Up @@ -149,7 +149,7 @@ function ScriptAddon_getIsActive() {
ScriptAddon.prototype.__defineGetter__('optionsURL',
function ScriptAddon_getOptionsURL() {
return 'chrome://greasemonkey/content/scriptprefs.xul#'
+ btoa(this._script.id);
+ encodeURIComponent(this._script.id);
});

ScriptAddon.prototype.__defineGetter__('userDisabled',
Expand Down

0 comments on commit 8c0059e

Please sign in to comment.