diff options
| -rwxr-xr-x | vdradmind.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vdradmind.pl b/vdradmind.pl index 128b114..f59e558 100755 --- a/vdradmind.pl +++ b/vdradmind.pl @@ -3704,7 +3704,7 @@ sub access_log { my $bytes_transfered = shift; my $request = shift; my $useragent = shift; - return sprintf("%s %s \"%s\" %s %s \"%s\" \"%s\"", $ip, $username, $rawrequest, $http_status ? $http_status : "-", $bytes_transfered ? $bytes_transfered : "-", $request, $useragent); + return sprintf("%s %s \"%s\" %s %s \"%s\" \"%s\"", $ip, defined($username) ? $username : "-", $rawrequest, $http_status ? $http_status : "-", $bytes_transfered ? $bytes_transfered : "-", $request, $useragent); } sub ValidConfig { |
