handle IMG
authorJamie Cameron <jcameron@webmin.com>
Wed, 6 Oct 2010 19:00:09 +0000 (12:00 -0700)
committerJamie Cameron <jcameron@webmin.com>
Wed, 6 Oct 2010 19:00:09 +0000 (12:00 -0700)
mailboxes/folders-lib.pl

index 5783875..3a126eb 100755 (executable)
@@ -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]*)/i) {
        local ($before, $allimg, $img, $after) = ($1, $2, $3, $4);
        $img =~ s/^'(.*)'$/$1/ || $img =~ s/^"(.*)"$/$1/;
        push(@$urls, $img) if ($urls);