]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix #213: 214/head
authorSyd Bauman <s.bauman@northeastern.edu>
Wed, 22 Sep 2021 21:19:07 +0000 (17:19 -0400)
committerSyd Bauman <s.bauman@northeastern.edu>
Wed, 22 Sep 2021 21:19:07 +0000 (17:19 -0400)
Change the substitution that replaces newlines with BR elements so that the syntax works for both HTML and XHTML.

wwwroot/cgi-bin/awstats.pl

index b9b38315e99af7e8c543a2889f318261a13ce2cf..7ec6c421f6e2fa01fc1afd929992c1185c912153 100755 (executable)
@@ -1313,7 +1313,7 @@ sub warning {
                if ( !$HeaderHTTPSent && $ENV{'GATEWAY_INTERFACE'} ) { http_head(); }
                if ( !$HeaderHTMLSent )        { html_head(); }
                if ( scalar keys %HTMLOutput ) {
-                       $messagestring =~ s/\n/\<br\>/g;
+                       $messagestring =~ s,\n,<br />,g;
                        print "$messagestring<br />\n";
                }
                else {