diff --git a/index.php b/index.php index f85e000758..98039f1b0f 100644 --- a/index.php +++ b/index.php @@ -56,7 +56,7 @@ if (! empty($_REQUEST['target']) && is_string($_REQUEST['target']) && ! preg_match('/^index/', $_REQUEST['target']) && ! in_array($_REQUEST['target'], $target_blacklist) - && in_array($_REQUEST['target'], $goto_whitelist) + && Core::checkPageValidity($_REQUEST['target']) ) { include $_REQUEST['target']; exit;