Inline HTML Warning Bug

Mark Sapiro mark at
Wed Mar 1 16:38:19 UTC 2017

On 03/01/2017 07:33 AM, Berlakovich Felix (OeRK-W) wrote:
> Changing the regex fixes the problem:
> 4595c4601
> <       $line =~ s/\<html\>/$&$warning/i;
> ---
>>       $line =~ s/\<html(.*)\>/$&$warning/i;
> However, I am not sure about possible consequences. Any recommendations?

I would make it

       $line =~ s/\<html[^>]*\>/$&$warning/i;

or possibly even

       $line =~ s/\<html( [^>]*)?\>/$&$warning/i;

But even these won't match if the <html tag isn't closed on the same 
line, so maybe even

       $line =~ s/\<html( [^>]*)?(\>|$)/$&$warning/i;

but I haven't tested any of this.

Mark Sapiro <mark at>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the MailScanner mailing list