From b25f1f6aea7cc0d8ab32f29015cab099435407ef Mon Sep 17 00:00:00 2001 From: oes Date: Fri, 8 Nov 2002 16:39:17 +0000 Subject: [PATCH] Made img-reorder more cautious. Fixes bug #632715 --- default.filter | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/default.filter b/default.filter index 58e10f3a..5b35289f 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.11.2.7 2002/09/25 15:09:39 oes Exp $ +# $Id: default.filter,v 1.11.2.8 2002/10/13 21:56:52 hal9 Exp $ # # Purpose : Rules to process the content of web pages # @@ -205,8 +205,8 @@ FILTER: img-reorder Reorder attributes in 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|]*)src\s*=\s*(['"])([^>\\\2]+)\2|]*)src\s*=\s*([^'">\\\s]+)|]*) src\s*=\s*(['"])([^>\\\2]+)\2|]*) src\s*=\s*([^'">\\\s]+)|\\\\2]+\2\|[^'">\\\s]+?))([^>]*)width\s*=\s*(["']?)(\d+?)|/g # 155 # # Revisions : # $Log: default.filter,v $ +# Revision 1.11.2.8 2002/10/13 21:56:52 hal9 +# Adding demoronizer filter. This should include all the common abuses. I have +# left a few of the rare cases commented out (never found these in the wild). +# # Revision 1.11.2.7 2002/09/25 15:09:39 oes # Preserve original quoting style in tags wherever possible. Fixes Bug #605956 # -- 2.49.0