Compare commits

..

1 commit

Author SHA1 Message Date
9a4873e00e FormatOutput(): Add missing variable init.
Signed-off-by: Thomas Hochstein <thh@thh.name>
2026-01-17 02:47:53 +01:00
2 changed files with 3 additions and 5 deletions

View file

@ -411,8 +411,8 @@ sub ClientStats {
# parse header
# User-Agent style
if ($Header{'x-newsreader'} =~ /^([^\/ ]+\/[^\/ ]+ ?)+$/) {
# transfer to user-agent, if not set, and parse from there
$Header{'user-agent'} = $Header{'x-newsreader'} if !$Header{'user-agent'};
# transfer to user-agent and parse from there
$Header{'user-agent'} = $Header{'x-newsreader'};
# "client name version"
} elsif ($Header{'x-newsreader'} =~ / /) {
($Client, $Version) = ParseXNewsreader($Header{'x-newsreader'});
@ -428,7 +428,7 @@ sub ClientStats {
version => $Version);
push @Clients, { %UserAgent };
} else {
$Header{'user-agent'} = $Header{'x-newsreader'} if !$Header{'user-agent'};
$Header{'user-agent'} = $Header{'x-newsreader'};
}
}
### User-Agent

View file

@ -5,8 +5,6 @@ NewsStats 0.5.0 (unreleased)
* Add addpost (to add post data dropped by feedlog).
* Rename postingstats.pl to poststats.pl, rename
dopostingstats.sh accordingly, fix all references.
* Fix missing variable initialisation in FormatOutput().
* gatherstats: Don't' overwrite User-Agent with X-Newsreader.
NewsStats 0.4.0 (2025-06-02)
* Reformat $Conf{TLH} for GroupStats only.