Upps, forgot argument

This commit is contained in:
Ralf Becker 2012-03-26 07:24:39 +00:00
parent 3f75ad7faf
commit 7c4bb7b62f

View File

@ -1376,7 +1376,7 @@ if (isset($_GET['menuaction']) && !preg_match('/^[A-Za-z0-9_]+\.[A-Za-z0-9_]+\.[
} }
// $GLOBALS[egw_info][flags][currentapp] and die if it contains something nasty or unexpected // $GLOBALS[egw_info][flags][currentapp] and die if it contains something nasty or unexpected
if (isset($GLOBALS['egw_info']) && isset($GLOBALS['egw_info']['flags']) && if (isset($GLOBALS['egw_info']) && isset($GLOBALS['egw_info']['flags']) &&
isset($GLOBALS['egw_info']['flags']['currentapp']) && !preg_match('/^[A-Za-z0-9_]+$/')) isset($GLOBALS['egw_info']['flags']['currentapp']) && !preg_match('/^[A-Za-z0-9_]+$/',$GLOBALS['egw_info']['flags']['currentapp']))
{ {
die('Invalid $GLOBALS[egw_info][flags][currentapp]!'); die('Invalid $GLOBALS[egw_info][flags][currentapp]!');
} }