From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 22 Apr 2012 12:17:08 +0000 (+0000)
Subject: Reduce the likelihood that the google filter messes up HTML-generating JavaScript
X-Git-Tag: v_3_0_20~350
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/%22javascript:back()/@default-cgi@toggle?a=commitdiff_plain;h=ea7d18294a92f7896ad1919c402ed241873a59a1;p=privoxy.git

Reduce the likelihood that the google filter messes up HTML-generating JavaScript

Reported by Zeno Kugy in #3520260.
---

diff --git a/default.filter b/default.filter
index 2dd8276c..0929ec22 100644
--- a/default.filter
+++ b/default.filter
@@ -2,7 +2,7 @@
 # 
 #  File        :  $Source: /cvsroot/ijbswa/current/default.filter,v $
 # 
-#  $Id: default.filter,v 1.83 2011/10/16 14:01:05 fabiankeil Exp $
+#  $Id: default.filter,v 1.84 2012/03/18 15:45:44 fabiankeil Exp $
 #
 #  Purpose     :  Rules to process the content of web pages
 # 
@@ -575,7 +575,7 @@ s@(<a(?:rea)?[^>]*?)\sping=(['"]?)([^"'>]+)\2([>\s]?)@\
 #################################################################################
 FILTER: google CSS-based block for Google text ads. Also removes a width limitation and the toolbar advertisement.
 
-s@</head>@<style type="text/css">\n\
+s@</head>[^\\]@<style type="text/css">\n\
  /* Style sheet inserted by Privoxy's google filter. */\n\
  \#fbc, \#fbl, \#ra, .rhh {visibility: hidden !important;}\n\
  \#tpa1,\#tpa2,\#tpa3,\#tpa4,\#tpa5,\#tpa5, \#spl, .ch, \#ads,\