From 0326dc47ed15cac574d1485846e97f5a5f994121 Mon Sep 17 00:00:00 2001 From: Syd Bauman Date: Wed, 22 Sep 2021 17:19:07 -0400 Subject: [PATCH] Fix #213: Change the substitution that replaces newlines with BR elements so that the syntax works for both HTML and XHTML. --- wwwroot/cgi-bin/awstats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.2