[HTTPS-E Rulesets] google rules break when javascript is disabled

Alan Barrett apb at cequrux.com
Sat Sep 3 02:49:06 PDT 2011


The default rules in version 1.0.1 of the HTTPS-Everywhere 
Firefox plugin convert http://www.google.<country>/search?q=foo 
to https://encrypted.google.com/#q=foo.  This doesn't 
work if javascript is disabled.  You should convert it to 
https://encrypted.google.com/search?q=foo instead.

This patch seems to work for me:

--- old/default.rulesets
+++ new/default.rulesets
@@ -3052,13 +3052,13 @@
  
    <rule
      from="^http://(www\.)?google\.[^/@:][^/@:]/(search\?|firefox|#)"
-      to="https://encrypted.google.com/#" />
+      to="https://encrypted.google.com/$2" />
  
    <!-- some look like "google.co.jp" -->
    <!-- and some crazy ones like "google.com.au" -->
    <rule
      from="^http://(www\.)?google\.com?\.[^/@:][^/@:]/(search\?|firefox|#)"
-      to="https://encrypted.google.com/#" />
+      to="https://encrypted.google.com/$2" />
    <!-- Completion urls look like this:
  
  http://clients2.google.co.jp/complete/search?hl=ja&client=hp&expIds=17259,24660,24729,24745&q=m&cp=1 HTTP/1.1\r\n


Thanks for making HTTPS-Everywhere available.  I am not subscribed 
to this mailing list, so please bear that in mind if you need to 
reply to me.

--apb (Alan Barrett)



More information about the HTTPS-Everywhere-Rules mailing list