[or-cvs] [torbutton/maint-1.2] Woops. Derefed this var in the wrong place.

mikeperry at seul.org mikeperry at seul.org
Wed Dec 2 20:16:09 UTC 2009


Author: Mike Perry <mikeperry-git at fscked.org>
Date: Fri, 6 Nov 2009 16:20:03 -0800
Subject: Woops. Derefed this var in the wrong place.
Commit: 432d549e1010ab999ae3094756fcc07ddf32387f

---
 src/chrome/content/torbutton.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 6220f8d..5351824 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -2432,10 +2432,10 @@ function torbutton_xfer_google_cookies(subject, topic, data) {
     var httpChannel = subject.QueryInterface(Ci.nsIHttpChannel);
     var hostmatch =
         subject.URI.host.match(/^www\.google\.(co\.\S\S|com|\S\S|com\.\S\S)$/);
-    var domain = hostmatch[1];
 
     // check nsIURI
     if (hostmatch) {
+      var domain = hostmatch[1];
       var google_host = m_tb_prefs.getCharPref("extensions.torbutton.google_host");
       torbutton_log(3, "Got Google request for host: "+subject.URI.host
               +", matched: "+hostmatch[0]);
-- 
1.5.6.5




More information about the tor-commits mailing list