image instead of removing it entirely.
Adjusted regex to only match if there's at least one whitespace
before the width and height attributes. Makes it more likely that
they are indeed attributes, and not part of the value of another attribute.
Solves BR
1035587.
Thanks to Martin Thomas for diagnosing the cause of the problem.
#
# File : $Source: /cvsroot/ijbswa/current/default.filter,v $
#
#
# File : $Source: /cvsroot/ijbswa/current/default.filter,v $
#
-# $Id: default.filter,v 1.25 2006/10/06 15:26:09 fabiankeil Exp $
+# $Id: default.filter,v 1.26 2006/10/06 18:06:16 fabiankeil Exp $
#
# Purpose : Rules to process the content of web pages
#
#
# Purpose : Rules to process the content of web pages
#
#################################################################################
FILTER: webbugs Squish WebBugs (1x1 invisible GIFs used for user tracking)
#################################################################################
FILTER: webbugs Squish WebBugs (1x1 invisible GIFs used for user tracking)
-s/<img\s+[^>]*(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*?>//siUg
+s@<img[^>]*\s(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*\s(?:width|height)\s*=\s*['"]?[01](?=\D)[^>]*?>@<!--\
+ Filtered by Privoxy's webbugs filter: $0 -->@siUg
#################################################################################
#################################################################################
#
# Revisions :
# $Log: default.filter,v $
#
# Revisions :
# $Log: default.filter,v $
+# Revision 1.26 2006/10/06 18:06:16 fabiankeil
+# Added header filter x-httpd-php-to-html
+# and reverted another img-reorder whitespace
+# problem.
+#
# Revision 1.25 2006/10/06 15:26:09 fabiankeil
# Bumped copyright year.
#
# Revision 1.25 2006/10/06 15:26:09 fabiankeil
# Bumped copyright year.
#