From: Fabian Keil Date: Wed, 11 Oct 2006 14:03:17 +0000 (+0000) Subject: Changed img-reorder regex to only move width X-Git-Tag: v_3_0_6~47 X-Git-Url: http://www.privoxy.org/gitweb/-%22http:/sourceforge.net/%40default-cgi%40show-url-info?a=commitdiff_plain;h=df2957e0e1ce85b69b1480d64d40ec13ca798e3c;p=privoxy.git Changed img-reorder regex to only move width attributes if they are following at least one whitespace. Fixes BR 1328455. --- diff --git a/default.filter b/default.filter index 928d092f..0a9fd708 100644 --- a/default.filter +++ b/default.filter @@ -2,7 +2,7 @@ # # File : $Source: /cvsroot/ijbswa/current/default.filter,v $ # -# $Id: default.filter,v 1.27 2006/10/08 17:00:51 fabiankeil Exp $ +# $Id: default.filter,v 1.28 2006/10/11 13:31:13 fabiankeil Exp $ # # Purpose : Rules to process the content of web pages # @@ -208,7 +208,7 @@ FILTER: img-reorder Reorder attributes in <img> tags to make the banners-by-* s|]*) src\s*=\s*(['"])([^>\\\2]+)\2|]*) src\s*=\s*([^'">\\\s]+)|\\\\2]*\2\|[^'">\\\s]+?))([^>]*)\s*width\s*=\s*(["']?)(\d+?)\4|\\\\2]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*(["']?)(\d+?)\4|