From 3cfe9605d5a626742cc2c79195e4dd9b7c53de77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 28 Nov 2017 09:40:50 +0100 Subject: [PATCH] Use shared code for checking page validity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;