mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
HTTP_REFERER will usually be unset for caldav requests, prevent "Undefined index" warnings
This commit is contained in:
parent
c8a0ca4531
commit
e2c6b927c8
@ -45,7 +45,7 @@ function clean_get() {
|
|||||||
if(isset($_POST)) array_walk($_POST, 'filter_post');
|
if(isset($_POST)) array_walk($_POST, 'filter_post');
|
||||||
$_GET = clean_get();
|
$_GET = clean_get();
|
||||||
$_SERVER['REQUEST_URI'] = str_replace("&", "&", htmlspecialchars($_SERVER['REQUEST_URI']));
|
$_SERVER['REQUEST_URI'] = str_replace("&", "&", htmlspecialchars($_SERVER['REQUEST_URI']));
|
||||||
$_SERVER['HTTP_REFERER'] = htmlspecialchars($_SERVER['HTTP_REFERER']);
|
$_SERVER['HTTP_REFERER'] = htmlspecialchars(@$_SERVER['HTTP_REFERER']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -45,7 +45,7 @@ function clean_get() {
|
|||||||
if(isset($_POST)) array_walk($_POST, 'filter_post');
|
if(isset($_POST)) array_walk($_POST, 'filter_post');
|
||||||
$_GET = clean_get();
|
$_GET = clean_get();
|
||||||
$_SERVER['REQUEST_URI'] = str_replace("&", "&", htmlspecialchars($_SERVER['REQUEST_URI']));
|
$_SERVER['REQUEST_URI'] = str_replace("&", "&", htmlspecialchars($_SERVER['REQUEST_URI']));
|
||||||
$_SERVER['HTTP_REFERER'] = htmlspecialchars($_SERVER['HTTP_REFERER']);
|
$_SERVER['HTTP_REFERER'] = htmlspecialchars(@$_SERVER['HTTP_REFERER']);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user