fixed problem with DN check
This commit is contained in:
parent
0e547029d8
commit
311c106690
|
@ -74,8 +74,9 @@ if (isset($_GET['DN'])) {
|
||||||
$DN = substr($DN, 0, -1);
|
$DN = substr($DN, 0, -1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$suffix = $_SESSION['config']->get_Suffix($type);
|
$suffix = strtolower($_SESSION['config']->get_Suffix($type));
|
||||||
if (strpos($DN, $suffix) !== (strlen($DN) - strlen($suffix))) {
|
$DNlower = strtolower($DN);
|
||||||
|
if (strpos($DNlower, $suffix) !== (strlen($DNlower) - strlen($suffix))) {
|
||||||
logNewMessage(LOG_ERR, 'User tried to access entry of type ' . $type . ' outside suffix ' . $suffix);
|
logNewMessage(LOG_ERR, 'User tried to access entry of type ' . $type . ' outside suffix ' . $suffix);
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue