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

[or-cvs] [https-everywhere/master 228/291] fix bug in googlecode.com rule -- without anything following the slash, it needs to go to some suitable part of code.google.com, but with something following the slash, it stays on googlecode.com



Author: Seth Schoen <schoen@xxxxxxx>
Date: Sun, 17 Oct 2010 21:52:18 -0700
Subject: fix bug in googlecode.com rule -- without anything following the slash, it
Commit: 1853f1c33ebed808d0c3eba80534df2838d97bf2

---
 src/chrome/content/rules/GoogleServices.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/rules/GoogleServices.xml b/src/chrome/content/rules/GoogleServices.xml
index 2fefc9d..350a30c 100644
--- a/src/chrome/content/rules/GoogleServices.xml
+++ b/src/chrome/content/rules/GoogleServices.xml
@@ -18,7 +18,11 @@
   <rule from="^http://news\.google((\.com?)?(\.[^/@:][^/@:])?)/"
           to="https://news.google$1/"; />
 
-  <rule from="^http://([^/:@]*)\.googlecode.com/"
-          to="https://$1.googlecode.com/"; />
+  <rule from="^http://www.googlecode.com/$";
+          to="https://code.google.com/"; />
+  <rule from="^http://([^/:@]*)\.googlecode.com/$"
+          to="https://code.google.com/p/$1/"; />
+  <rule from="^http://([^/:@]*)\.googlecode.com/(.+)"
+          to="https://$1.googlecode.com/$2"; />
 
 </ruleset>
-- 
1.7.1