mirror of
https://github.com/darold/squidanalyzer.git
synced 2025-07-31 01:44:29 +02:00
Change underscore used to replace space in username bi the special string _SPC_ so that undescore will not be wrongly replaced on HTML output.
This commit is contained in:
parent
873f188fdd
commit
63432e3748
@ -2137,7 +2137,7 @@ sub _print_user_stat
|
||||
last;
|
||||
}
|
||||
}
|
||||
$show =~ s/_/ /g;
|
||||
$show =~ s/_SPC_/ /g;
|
||||
my $url = &escape($usr);
|
||||
my $comma_bytes = $self->format_bytes($user_stat{$usr}{bytes});
|
||||
if ($self->{UrlReport}) {
|
||||
@ -2312,6 +2312,7 @@ sub _print_netuser_stat
|
||||
last;
|
||||
}
|
||||
}
|
||||
$show =~ s/_SPC_/ /g;
|
||||
my $url = &escape($usr);
|
||||
my $comma_bytes = $self->format_bytes($netuser_stat{$usr}{bytes});
|
||||
if ($self->{UrlReport}) {
|
||||
@ -3071,7 +3072,7 @@ sub parse_user_aliases
|
||||
$i++;
|
||||
next if (!$l || ($l =~ /^[\s\t]*#/));
|
||||
my @data = split(/\t+/, $l, 2);
|
||||
$data[0] =~ s/\s+/_/g; # Replace space, they are not allowed
|
||||
$data[0] =~ s/\s+/_SPC_/g; # Replace space, they are not allowed
|
||||
if ($#data == 1) {
|
||||
my @rg = split(/(?<!\{\d)[\s,;\t](?!\d+\})/, $data[1]);
|
||||
foreach my $r (@rg) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user