X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=default.filter;h=53777fc029d609494ed4254e1b08867782c36ca8;hp=46408c08bb0cfd64221a13cc3b8039bb3ccea5cb;hb=ba8c8fd40fb5e150e24819471977f46172acbae6;hpb=02d86846f79824a54f496babf512efddbd67b6e9 diff --git a/default.filter b/default.filter index 46408c08..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.91 2014/06/20 09:46:13 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 @@ -220,8 +219,8 @@ FILTER: img-reorder Reorder attributes in tags to make the banners-by-* fi # and banners-by-link to preserve the original image URL in the title attribute. s|]*)\ssrc\s*=\s*(['"])([^>'" ]+)\2|]*)\ssrc\s*=\s*([^'">\\\s]+)|]+height)\s*=\s*|$1=|sig +s|]*)\ssrc\s*=\s*([^'">\\\s]+)|]+height)\s*=\s*|$1=|siUg s|'" ]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*((["']?)\d+?\5)(?=[\s>])|