X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=default.filter;h=53777fc029d609494ed4254e1b08867782c36ca8;hb=175ce1afa78cbcfe53aa456f6ccbfab58364fa26;hp=3f63e99b324b4008c4dc40764ef65124ac3b0832;hpb=4f525794bfa4eae463ba6b2afdc0c447bdb1b8b3;p=privoxy.git
diff --git a/default.filter b/default.filter
index 3f63e99b..53777fc0 100644
--- a/default.filter
+++ b/default.filter
@@ -1,13 +1,11 @@
#################################################################################
#
-# File : $Source: /cvsroot/ijbswa/current/default.filter,v $
+# File : default.filter
#
-# $Id: default.filter,v 1.90 2014/05/05 09:59:51 fabiankeil Exp $
-#
# Purpose : Rules to process the content of web pages
#
-# Copyright : Written by and Copyright (C) 2001-2014 the
-# Privoxy team. http://www.privoxy.org/
+# Copyright : Written by and Copyright (C) 2001-2018 the
+# Privoxy team. https://www.privoxy.org/
#
# This program is free software; you can redistribute it
# and/or modify it under the terms of the GNU General
@@ -57,7 +55,8 @@
# quoting.
#
# 'D' (Dynamic) allows the use of variables. Supported variables are:
-# $host, $origin (the IP address the request came from), $path and $url.
+# $host, $listen-address, $origin (the IP address the request came
+# from), $path and $url.
#
# Note that '$' is a bad choice as delimiter for dynamic filters as you
# might end up with unintended variables if you use a variable name
@@ -219,11 +218,11 @@ 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 title attribute.
-s|]*)\ssrc\s*=\s*(['"])([^>\\\2]+)\2|]*)\ssrc\s*=\s*([^'">\\\s]+)|]+height)\s*=\s*|$1=|sig
+s|]*)\ssrc\s*=\s*(['"])([^>'" ]+)\2|]*)\ssrc\s*=\s*([^'">\\\s]+)|]+height)\s*=\s*|$1=|siUg
-s|\\\\2]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*((["']?)\d+?\5)(?=[\s>])|'" ]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*((["']?)\d+?\5)(?=[\s>])|