From: Fabian Keil Date: Fri, 25 Apr 2014 11:49:12 +0000 (+0000) Subject: Decrease the chances that js-annoyances creates invalid JavaScript X-Git-Tag: v_3_0_22~176 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=155d5d2172715ebce6f13c0f42fe0b82bf73688b Decrease the chances that js-annoyances creates invalid JavaScript Adding double quotes can cause problems if the filtered text is part of an already double-quoted string. Submitted by John McGowan on ijbswa-users@. --- diff --git a/default.filter b/default.filter index 43f2ca08..01650f04 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.85 2012/04/22 12:17:08 fabiankeil Exp $ +# $Id: default.filter,v 1.86 2013/02/19 11:14:47 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # @@ -93,7 +93,7 @@ FILTER: js-annoyances Get rid of particularly annoying JavaScript abuse. # Get rid of Javascript referrer tracking. # Test page: http://www.javascript-page.com/referrer.html # -s|(?:\w+\.)+referrer|"Not Your Business!"|gisU +s|(?:\w+\.)+referrer|false.toString()|gisU # The status bar is for displaying link targets, not pointless blahblah #