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

[or-cvs] [torbutton/master 25/47] Alter redir fix slighlty.



Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date: Sat, 3 Apr 2010 06:14:50 -0700
Subject: Alter redir fix slighlty.
Commit: 248085497ff5d9f68227fe70e969386dbdeebbb6

This seems to be a little more sensible.
---
 src/chrome/content/torbutton.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 29537ca..33697d0 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -2803,7 +2803,8 @@ function torbutton_check_google_captcha(subject, topic, data) {
       // Split url into [?&]q=...[&$]
       if (browser)
         browser.loadURI(newUrl+querymatch[1], null, subject.URI.originCharset);
-      httpChannel.setResponseHeader("Location", newUrl+querymatch[1], false);
+      else
+        httpChannel.setResponseHeader("Location", newUrl+querymatch[1], false);
       torbutton_log(4, "Got Google Captcha. Redirecting");
     }
   }
-- 
1.7.1