From de75a745450ee90b12bd9bec875beb7fda87d066 Mon Sep 17 00:00:00 2001 From: Einar Egilsson Date: Mon, 19 Oct 2009 14:20:43 +0000 Subject: Fixed small error in exclude pattern git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@282 119bf307-c92d-0410-89bd-8f53e6181181 --- chrome/content/code/redirect.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'chrome') 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; }, -- cgit v1.2.3-70-g09d2