From 92c22ff52916110325b9932462d4e9db4e34f837 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 8 Jan 2019 09:50:03 +0100 Subject: [PATCH] fix PHP Warning: Use of undefined constant REQUEST_URI --- api/src/loader/security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/loader/security.php b/api/src/loader/security.php index fb8ddf1fae..50f4d8b135 100755 --- a/api/src/loader/security.php +++ b/api/src/loader/security.php @@ -108,7 +108,7 @@ foreach(array('_COOKIE','_GET','_POST','_REQUEST','HTTP_GET_VARS','HTTP_POST_VAR if (isset($GLOBALS['egw_info']) && isset($GLOBALS['egw_info']['flags']) && isset($GLOBALS['egw_info']['flags']['currentapp']) && !preg_match('/^[A-Za-z0-9_-]+$/',$GLOBALS['egw_info']['flags']['currentapp'])) { - error_log(__FILE__.': '.__LINE__.' Invalid $GLOBALS[egw_info][flags][currentapp]='.array2string($GLOBALS['egw_info']['flags']['currentapp']).', $_SERVER[REQUEST_URI]='.array2string($_SERVER[REQUEST_URI])); + error_log(__FILE__.': '.__LINE__.' Invalid $GLOBALS[egw_info][flags][currentapp]='.array2string($GLOBALS['egw_info']['flags']['currentapp']).', $_SERVER[REQUEST_URI]='.array2string($_SERVER['REQUEST_URI'])); die('Invalid $GLOBALS[egw_info][flags][currentapp]!'); }