* some fix

This commit is contained in:
slawkens 2017-10-10 15:42:52 +02:00
parent 041702615f
commit 87ba018ab8

View File

@ -55,7 +55,7 @@ if(empty($uri) || isset($_REQUEST['template'])) {
$_REQUEST['p'] = 'news';
$found = true;
}
else if(file_exists(SYSTEM . 'pages/' . $uri . '.php')) {
else if(!preg_match('/[^A-z0-9_\-]/', $uri) && file_exists(SYSTEM . 'pages/' . $uri . '.php')) {
$_REQUEST['p'] = $uri;
$found = true;
}