1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Fix captcha detection for encrypted.google.com.
Origin: upstream, commit: e662c7d1fc8cb78ad33b0ab081be5fb43fa740e0
Author: Mike Perry <mikeperry-git@fscked.org>
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) {
|