mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +02:00
This is the actual security fix
This commit is contained in:
parent
aa26a71949
commit
a2a773d714
@ -334,7 +334,7 @@ if($load_it)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$file = SYSTEM . 'pages/' . $page . '.php';
|
$file = SYSTEM . 'pages/' . $page . '.php';
|
||||||
if(!@file_exists($file))
|
if(!@file_exists($file) || preg_match('/[^A-z0-9_\-]/', $page))
|
||||||
{
|
{
|
||||||
$page = '404';
|
$page = '404';
|
||||||
$file = SYSTEM . 'pages/404.php';
|
$file = SYSTEM . 'pages/404.php';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user