mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-29 10:49:22 +02:00
* some fix
This commit is contained in:
parent
041702615f
commit
87ba018ab8
@ -55,7 +55,7 @@ if(empty($uri) || isset($_REQUEST['template'])) {
|
|||||||
$_REQUEST['p'] = 'news';
|
$_REQUEST['p'] = 'news';
|
||||||
$found = true;
|
$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;
|
$_REQUEST['p'] = $uri;
|
||||||
$found = true;
|
$found = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user