aboutsummaryrefslogtreecommitdiff
path: root/chrome
diff options
context:
space:
mode:
authorEinar Egilsson2009-10-19 14:20:43 +0000
committerEinar Egilsson2009-10-19 14:20:43 +0000
commitde75a745450ee90b12bd9bec875beb7fda87d066 (patch)
tree2fd246b0af75cfc156a48c6468e8bacc79681095 /chrome
parentd200cd7c4bbb758e99ffdbe7ba062442ab3ea35f (diff)
Fixed small error in exclude pattern
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@282 119bf307-c92d-0410-89bd-8f53e6181181
Diffstat (limited to 'chrome')
-rw-r--r--chrome/content/code/redirect.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/content/code/redirect.js b/chrome/content/code/redirect.js
index 7016715..e65ca50 100644
--- a/chrome/content/code/redirect.js
+++ b/chrome/content/code/redirect.js
@@ -168,7 +168,10 @@ Redirect.prototype = {
},
_excludeMatch : function(url) {
- var shouldExclude = !!(this._rxExclude && this._rxExclude.exec(url));
+ if (!this._rxExclude) {
+ return false;
+ }
+ var shouldExclude = !!this._rxExclude.exec(url);
this._rxExclude.lastIndex = 0;
return shouldExclude;
},