X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=default.filter;h=53777fc029d609494ed4254e1b08867782c36ca8;hp=8195747a867fe3ce161e2243fe421942d5f0bbcd;hb=1cca8d974c645ef98cf343cb4dbf1ce42d5e88bd;hpb=f170629e040780c1c7a41776314dbf52a47937d4
diff --git a/default.filter b/default.filter
index 8195747a..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.89 2014/05/05 09:48:55 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
@@ -144,7 +143,7 @@ FILTER: html-annoyances Get rid of particularly annoying HTML abuse.
#
s/(]+resizable=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
s/(]+location=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
-s/(]+status=)(['"]?)(?:no|0)\2/$1$2yes1$2/igU
+s/(]+status=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
s/(]+scrolling=)(['"]?)(?:no|0)\2/$1$2auto$2/igU
s/(]+menubar=)(['"]?)(?:no|0)\2/$1$2yes$2/igU
@@ -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>])|