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

Re: [tor-bugs] #5733 [EFF-HTTPS Everywhere]: default.rulesets is obfuscated by not having line terminators



#5733: default.rulesets is obfuscated by not having line terminators
------------------------------------------+---------------------------------
 Reporter:  cypherpunks                   |          Owner:  pde
     Type:  defect                        |         Status:  new
 Priority:  normal                        |      Milestone:     
Component:  EFF-HTTPS Everywhere          |        Version:     
 Keywords:  lf cr crlf linebreak newline  |         Parent:     
   Points:                                |   Actualpoints:     
------------------------------------------+---------------------------------

Comment(by pde):

 This is a hilarious bug report :).

 The reason there are some CRs in there is because ruleset authors
 committed rules containing them, but the script that strips comments and
 whitespace from default.rulesets didn't anticipate that.

 One solution to your problem is to edit rulesets by a different method:

 {{{
 git clone git://gitweb.torproject.org/httpseverywhere.git
 }}}
 <edit the ruleset in src/chrome/content/rules>

 {{{
 ./makecrx.sh today
 }}}
 <uninstall the upstream .crx file; install the one you just built>

 The other solution would be to send a patch against the ruleset library
 compression script to make it preserve a small number of judiciously
 selected whitespaces. Maybe one per ruleset? It's can be found here:

 https://gitweb.torproject.org/https-
 everywhere.git/blob/b50b89f917497996409f87f2469237c9016237e0:/merge-
 rulesets.sh

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/5733#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs