do not strip .php from uri in add_log_line()

This commit is contained in:
Uwe Steinmann 2021-06-28 09:25:58 +02:00
parent 2ce03dcb2a
commit cb383eb70b

View File

@ -426,7 +426,7 @@ function _add_log_line($msg="") { /* {{{ */
else $logname=date("Ym", time());
if($h = fopen($settings->_contentDir.$logname.".log", "a")) {
fwrite($h,date("Y/m/d H:i", time())." ".$user->getLogin()." (".$_SERVER['REMOTE_ADDR'].") ".basename($_SERVER["REQUEST_URI"], ".php").$msg."\n");
fwrite($h,date("Y/m/d H:i", time())." ".$user->getLogin()." (".$_SERVER['REMOTE_ADDR'].") ".basename($_SERVER["REQUEST_URI"]).$msg."\n");
fclose($h);
}
} /* }}} */