diff options
author | Michal Čihař <michal@cihar.com> | 2018-06-21 13:25:53 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2018-06-21 14:31:00 +0300 |
commit | 7662d02939fb3cf6f0d9ec32ac664401dcfe7490 (patch) | |
tree | 476acdb43165110b1cc412b2f70e9df54ba6202d /index.php | |
parent | c27b9c12f2c268e0139378780abb436486aee919 (diff) |
Avoid looking for ? when checking for file to be included
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -56,7 +56,7 @@ if (! empty($_REQUEST['target']) && is_string($_REQUEST['target']) && ! preg_match('/^index/', $_REQUEST['target']) && ! in_array($_REQUEST['target'], $target_blacklist) - && Core::checkPageValidity($_REQUEST['target']) + && Core::checkPageValidity($_REQUEST['target'], [], true) ) { include $_REQUEST['target']; exit; |