[Privoxy-commits] [privoxy] 35/46: Make the second pcrs job of the img-reorder filter greedy again
User Git
git at git.privoxy.org
Sun Feb 21 15:10:57 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 3ddc05ad1532ae5f5480098ab5595db8a3045694
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Feb 20 05:30:08 2021 +0100
Make the second pcrs job of the img-reorder filter greedy again
The ungreedy version caused breakage like:
-<img width=888 height=573 src=socket.png>
+<img src=s width=888 height=573ocket.png>
on http://bulk.fefe.de/scalability/.
---
default.filter | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/default.filter b/default.filter
index 72c7dcde..e19f6cf6 100644
--- a/default.filter
+++ b/default.filter
@@ -218,7 +218,7 @@ FILTER: img-reorder Reorder attributes in <img> tags to make the banners-by-* fi
# and banners-by-link to preserve the original image URL in the title attribute.
s|<img\s+?([^>]*)\ssrc\s*=\s*(['"])([^>'" ]+)\2|<img src=$2$3$2 $1|siUg
-s|<img\s+?([^>]*)\ssrc\s*=\s*([^'">\\\s]+)|<img src=$2 $1|siUg
+s|<img\s+?([^>]*)\ssrc\s*=\s*([^'">\\\s]+)|<img src=$2 $1|sig
s|(<img[^>]+height)\s*=\s*|$1=|siUg
s|<img (src=(?:(['"])[^>'" ]*\2\|[^'">\\\s]+?))([^>]*)\s+width\s*=\s*((["']?)\d+?\5)(?=[\s>])|<img $1 width=$4$3|siUg
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list