fixed a possible uninitialized value in 'HTTPServer.pm' at line 37

This commit is contained in:
Jordi Sanfeliu 2016-06-16 12:48:47 +02:00
parent 4379cad3e3
commit c5703adee1
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ N.N.N - DD-MMM-2015
- Fixed to show the memory usage correctly in 'phpapc.pm'.
- Fixed in 'zfs.pm' to convert FRAG to a numeric value if it's not used in the
pool. [#138]
- Fixed a possible uninitialized value in 'HTTPServer.pm' at line 37.
3.8.1 - 13-Nov-2015

View File

@ -34,7 +34,7 @@ sub logger {
if(open(OUT, ">> $main::config{httpd_builtin}->{log_file}")) {
if($type eq "OK") {
print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] \"$ENV{REQUEST_METHOD} $url - $ENV{HTTP_USER_AGENT}\"\n";
print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] \"$ENV{REQUEST_METHOD} $url - " . ($ENV{HTTP_USER_AGENT} || "") . "\"\n";
} elsif($type eq "NOTEXIST") {
print OUT localtime() . " - $type - [$ENV{REMOTE_ADDR}] File does not exist: $url\n";
} elsif($type eq "AUTHERR") {