From: Syd Bauman Date: Wed, 22 Sep 2021 21:19:07 +0000 (-0400) Subject: Fix #213: X-Git-Tag: AWSTATS_7_9~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F214%2Fhead;p=thirdparty%2FAWStats.git Fix #213: Change the substitution that replaces newlines with BR elements so that the syntax works for both HTML and XHTML. --- diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl index b9b38315..7ec6c421 100755 --- a/wwwroot/cgi-bin/awstats.pl +++ b/wwwroot/cgi-bin/awstats.pl @@ -1313,7 +1313,7 @@ sub warning { if ( !$HeaderHTTPSent && $ENV{'GATEWAY_INTERFACE'} ) { http_head(); } if ( !$HeaderHTMLSent ) { html_head(); } if ( scalar keys %HTMLOutput ) { - $messagestring =~ s/\n/\/g; + $messagestring =~ s,\n,
,g; print "$messagestring
\n"; } else {