aboutsummaryrefslogtreecommitdiff
path: root/chrome/content/code/editRedirect.xul.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/content/code/editRedirect.xul.js')
-rw-r--r--chrome/content/code/editRedirect.xul.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/content/code/editRedirect.xul.js b/chrome/content/code/editRedirect.xul.js
index e497245..100a7a0 100644
--- a/chrome/content/code/editRedirect.xul.js
+++ b/chrome/content/code/editRedirect.xul.js
@@ -53,7 +53,8 @@ var EditRedirect = {
redirect.excludePattern = this.txtExcludePattern.value;
redirect.redirectUrl = this.txtRedirectUrl.value;
redirect.patternType = this.rdoRegex.getAttribute('selected') == 'true' ? Redirect.REGEX : Redirect.WILDCARD;
- redirect.unescapeMatches = this.chkUnescapeMatches.getAttribute('checked');
+ var val = this.chkUnescapeMatches.getAttribute('checked');
+ redirect.unescapeMatches = val === 'true' || val === true;
//Disabled cannot be set here
},