secure page selection
This commit is contained in:
parent
04973d1fa1
commit
377c24e13d
|
@ -28,7 +28,7 @@ if (isset ($_REQUEST['auth']))
|
||||||
|
|
||||||
// Gewünschte Seite/Funktion
|
// Gewünschte Seite/Funktion
|
||||||
$p = isset ($user) ? "news" : "start";
|
$p = isset ($user) ? "news" : "start";
|
||||||
if (isset ($_REQUEST['p']))
|
if (isset ($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && sql_num_query("SELECT * FROM `Privileges` WHERE `name`='" . sql_escape($_REQUEST['p']) . "' LIMIT 1") > 0)
|
||||||
$p = $_REQUEST['p'];
|
$p = $_REQUEST['p'];
|
||||||
|
|
||||||
$title = Get_Text($p);
|
$title = Get_Text($p);
|
||||||
|
|
Loading…
Reference in New Issue