log REQUEST_URI not PATH_INFO, to log the correct request

This commit is contained in:
Ralf Becker 2012-01-20 07:21:28 +00:00
parent 7f14a2a196
commit f7ebd11af3

View File

@ -1329,7 +1329,7 @@ class groupdav extends HTTP_WebDAV_Server
error_log('*** '.$_SERVER['REMOTE_ADDR'].' '.date('c').$msg_nl,$msg_type,$msg_file);
}
error_log($_SERVER['REQUEST_METHOD'].' '.$_SERVER['PATH_INFO'].' HTTP/1.1'.$msg_nl,$msg_type,$msg_file);
error_log($_SERVER['REQUEST_METHOD'].' '.$_SERVER['REQUEST_URI'].' HTTP/1.1'.$msg_nl,$msg_type,$msg_file);
// reconstruct headers
foreach($_SERVER as $name => $value)
{