File: fix_captcha_detection_for_encrypted_google.patch

package info (click to toggle)
torbutton 1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,888 kB
  • ctags: 997
  • sloc: xml: 2,119; sh: 46; makefile: 11
file content (17 lines) | stat: -rw-r--r-- 797 bytes parent folder | download
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) {