mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-06-09 15:45:25 +02:00
check if $_REQUEST['REQUEST_URI'] exists before using it
This commit is contained in:
parent
8daa6f8f5a
commit
584116f529
@ -171,8 +171,8 @@ class DebugBar implements ArrayAccess
|
|||||||
'id' => $this->getCurrentRequestId(),
|
'id' => $this->getCurrentRequestId(),
|
||||||
'datetime' => date('Y-m-d H:i:s'),
|
'datetime' => date('Y-m-d H:i:s'),
|
||||||
'utime' => microtime(true),
|
'utime' => microtime(true),
|
||||||
'uri' => $_SERVER['REQUEST_URI'],
|
'uri' => isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : null,
|
||||||
'ip' => $_SERVER['REMOTE_ADDR']
|
'ip' => isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : null
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user