From: oes <oes@users.sourceforge.net>
Date: Fri, 8 Nov 2002 16:40:56 +0000 (+0000)
Subject: Made img-reorder more cautious. Fixes bug #632715
X-Git-Tag: v_3_1_archive_branchpoint~60
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/@user-manual@?a=commitdiff_plain;h=b42c3bb7b16cc18018b5608f06acc0364ddf5185;p=privoxy.git

Made img-reorder more cautious. Fixes bug #632715
---

diff --git a/default.filter b/default.filter
index b4898186..0b6d22f3 100644
--- a/default.filter
+++ b/default.filter
@@ -1,8 +1,8 @@
 # ********************************************************************
 # 
-#  File        :  $Source: /cvsroot/ijbswa/current/default.filter,v $
+#  File        :  $Source: /cvsroot/ijbswa//current/default.filter,v $
 # 
-#  $Id: default.filter,v 1.13 2002/09/11 16:04:20 oes Exp $
+#  $Id: default.filter,v 1.14 2002/10/13 21:58:20 hal9 Exp $
 #
 #  Purpose     :  Rules to process the content of web pages
 # 
@@ -205,8 +205,8 @@ FILTER: img-reorder Reorder attributes in <img> tags to make the banners-by-* fi
 # This makes banners-by-size more effective and allows both banners-by-size
 # and banners-by-link to preserve the original image URL in the alt attribute.
 
-s|<img\s+?([^>]*)src\s*=\s*(['"])([^>\\\2]+)\2|<img src=$2$3$2$1|siUg
-s|<img\s+?([^>]*)src\s*=\s*([^'">\\\s]+)|<img src=$2$1|sig
+s|<img\s+?([^>]*) src\s*=\s*(['"])([^>\\\2]+)\2|<img src=$2$3$2 $1|siUg
+s|<img\s+?([^>]*) src\s*=\s*([^'">\\\s]+)|<img src=$2 $1|sig
 
 s|<img (src=(?:(['"])[^>\\\\2]+\2\|[^'">\\\s]+?))([^>]*)width\s*=\s*(["']?)(\d+?)|<img $1 width=$4$5$4$3|siUg
 
@@ -396,6 +396,9 @@ s/\x9B/>/g                  # 155
 #
 #  Revisions   :
 #     $Log: default.filter,v $
+#     Revision 1.14  2002/10/13 21:58:20  hal9
+#     Add demoronizer filter to sync with 3.0.1.
+#
 #     Revision 1.13  2002/09/11 16:04:20  oes
 #     Preserve original quoting style in <img> tags wherever possible. Fixes Bug #605956
 #