projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c91a503
)
Fix image disable regexp
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 19 Mar 2010 18:06:23 +0000
(11:06 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 19 Mar 2010 18:06:23 +0000
(11:06 -0700)
mailboxes/folders-lib.pl
patch
|
blob
|
history
diff --git
a/mailboxes/folders-lib.pl
b/mailboxes/folders-lib.pl
index
55c04a0
..
104f4d3
100755
(executable)
--- a/
mailboxes/folders-lib.pl
+++ b/
mailboxes/folders-lib.pl
@@
-2553,7
+2553,7
@@
sub disable_html_images
{
local ($html, $dis, $urls) = @_;
local $newhtml;
-while($html =~ /^([\000-\377]*)(<\s*img[^>]*src=('[^']*'|"[^"]*"|\S+)[^>]*>)([\000-\377]*)/) {
+while($html =~ /^([\000-\377]*
?
)(<\s*img[^>]*src=('[^']*'|"[^"]*"|\S+)[^>]*>)([\000-\377]*)/) {
local ($before, $allimg, $img, $after) = ($1, $2, $3, $4);
$img =~ s/^'(.*)'$/$1/ || $img =~ s/^"(.*)"$/$1/;
push(@$urls, $img) if ($urls);