diff --git a/htdocs/always.php b/htdocs/always.php index 984cc403..83bbfd7d 100644 --- a/htdocs/always.php +++ b/htdocs/always.php @@ -44,7 +44,9 @@ function clean_get() { // relies on variables that are easily manipulated by the user. These lines and functions filter all those variables. if(isset($_POST)) array_walk($_POST, 'filter_post'); $_GET = clean_get(); -$_SERVER['REQUEST_URI'] = str_replace("&", "&", htmlspecialchars($_SERVER['REQUEST_URI'])); +if (isset($_SERVER['REQUEST_URI'])) { + $_SERVER['REQUEST_URI'] = str_replace("&", "&", htmlspecialchars($_SERVER['REQUEST_URI'])); +} if (isset($_SERVER['HTTP_REFERER'])) { $_SERVER['HTTP_REFERER'] = htmlspecialchars(@$_SERVER['HTTP_REFERER']); }