mirror of
https://github.com/webmin/webmin.git
synced 2026-06-19 19:00:22 +01:00
Fix image disable regexp
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user