[or-cvs] [https-everywhere/master 4/4] find rules redirecting to http instead of https

schoen at torproject.org schoen at torproject.org
Sun Oct 31 07:02:35 UTC 2010


Author: Seth Schoen <schoen at eff.org>
Date: Sun, 31 Oct 2010 00:02:16 -0700
Subject: find rules redirecting to http instead of https
Commit: 1b8d357d090edcd75320b9ba4402d407ca5a25a8

---
 pending-rules/trivial-validate |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/pending-rules/trivial-validate b/pending-rules/trivial-validate
index 198d769..f8e7bac 100755
--- a/pending-rules/trivial-validate
+++ b/pending-rules/trivial-validate
@@ -12,7 +12,10 @@ echo "-- Rules not containing trailing slash in from pattern:"
 grep from= *.xml | cut -d\" -f2 | grep -v '//.*/' || echo "(None.)"
 echo
 echo "-- Rules not containing trailing slash in to pattern:"
-grep 'to="' *xml | sed 's/^.*to="//' | sed 's/\".*$//' | grep -v '//.*/'
+grep 'to="' *xml | sed 's/^.*to="//' | sed 's/\".*$//' | grep -v '//.*/' || echo "(None.)"
 echo
 echo "-- Rules with missing closing slash in rule XML tag:"
 grep to= *xml | grep '[^/]>' || echo "(None.)"
+echo
+echo "-- Rules redirecting to http in to pattern:"
+grep 'to="' *xml | sed 's/^.*to="//' | sed 's/\".*$//' | grep '^http:' || echo "(None.)"
-- 
1.7.1



More information about the tor-commits mailing list