Handle multiple <body> tags
authorJamie Cameron <jcameron@webmin.com>
Thu, 5 Mar 2009 19:11:08 +0000 (19:11 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 5 Mar 2009 19:11:08 +0000 (19:11 +0000)
mailboxes/folders-lib.pl

index 1361ca4..fcfce2c 100644 (file)
@@ -2194,7 +2194,7 @@ sub safe_html
 {
 local $html = $_[0];
 local $bodystuff;
-if ($html =~ s/^[\000-\377]*<BODY([^>]*)>//i) {
+if ($html =~ s/^[\000-\377]*?<BODY([^>]*)>//i) {
        $bodystuff = $1;
        }
 $html =~ s/<\/BODY>[\000-\377]*$//i;