]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: &# entities in language files were truncated.
authoreldy <>
Thu, 30 Dec 2004 18:23:46 +0000 (18:23 +0000)
committereldy <>
Thu, 30 Dec 2004 18:23:46 +0000 (18:23 +0000)
wwwroot/cgi-bin/awstats.pl

index 1ffadd708cdde23a8b0985d3a321de9ee3140b93..7d2ebe8554a931db40fb9bb1a3611d65cd5c4e23 100644 (file)
@@ -1427,7 +1427,8 @@ sub Read_Language_Data {
                        if ($_ =~ /$cregcode/o) { $PageCode = $1; }
                        if ($_ =~ /$cregdir/o)  { $PageDir = $1; }
                        if ($_ =~ s/$cregmessage//o) {
-                               $_ =~ s/#.*//;                                                          # Remove comments
+                               $_ =~ s/^#.*//;                                                         # Remove comments
+                               $_ =~ s/\s+#.*//;                                                       # Remove comments
                                $_ =~ tr/\t /  /s;                                                      # Change all blanks into " "
                                $_ =~ s/^\s+//; $_ =~ s/\s+$//;
                                $_ =~ s/^\"//; $_ =~ s/\"$//;