Reduce the likelihood that the google filter messes up HTML-generating JavaScript
authorFabian Keil <fk@fabiankeil.de>
Sun, 22 Apr 2012 12:17:08 +0000 (12:17 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 22 Apr 2012 12:17:08 +0000 (12:17 +0000)
Reported by Zeno Kugy in #3520260.

default.filter

index 2dd8276..0929ec2 100644 (file)
@@ -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,\