[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [torbutton/maint-1.2 2/5] Fix captcha detection for encrypted.google.com.



Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date: Thu, 30 Sep 2010 07:38:18 -0700
Subject: Fix captcha detection for encrypted.google.com.
Commit: e662c7d1fc8cb78ad33b0ab081be5fb43fa740e0

---
 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 9cf0220..89c6297 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -2719,7 +2719,7 @@ function torbutton_check_google_captcha(subject, topic, data) {
     return;
 
   var httpChannel = subject.QueryInterface(Ci.nsIHttpChannel);
-  var hostmatch = subject.URI.host.match(/^www\.google\.(co\.\S\S|com|\S\S|com\.\S\S)$/);
+  var hostmatch = subject.URI.host.match(/^(encrypted|www)\.google\.(co\.\S\S|com|\S\S|com\.\S\S)$/);
 
   // check nsIURI
   if (hostmatch && httpChannel.responseStatus == 302) {
-- 
1.7.1