Better check for $_SERVER['PATH_INFO']

This commit is contained in:
eppesuig authored and Andrew Ruthven committed 2023-06-21 23:21:57 +00:00
1 parent 6ac6b30c7a
commit de29c6c6ee
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -279,7 +279,7 @@ if ( isset($_SERVER['HTTP_X_DAVICAL_TESTCASE']) ) {
else if ( isset($c->dbg['script_start']) && $c->dbg['script_start'] ) {
// Only log this if more than a little debugging of some sort is turned on, somewhere
@dbg_error_log( 'LOG', '==========> method =%s= =%s= =%s= =%s= =%s=',
$_SERVER['REQUEST_METHOD'], $c->protocol_server_port_script, (isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '$_SERVER[PATH_INFO] undefined'), $c->base_url, $c->base_directory );
$_SERVER['REQUEST_METHOD'], $c->protocol_server_port_script, (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] !== '' ? $_SERVER['PATH_INFO'] : '$_SERVER[PATH_INFO] undefined'), $c->base_url, $c->base_directory );
}
/**