fix for DN that includes a " ,"

This commit is contained in:
Roland Gruber 2014-10-01 18:13:16 +00:00
parent 311c106690
commit 27c68d11b9
1 changed files with 2 additions and 0 deletions

View File

@ -75,7 +75,9 @@ if (isset($_GET['DN'])) {
}
}
$suffix = strtolower($_SESSION['config']->get_Suffix($type));
$suffix = str_replace(' ,', ',', $suffix);
$DNlower = strtolower($DN);
$DNlower = str_replace(' ,', ',', $DNlower);
if (strpos($DNlower, $suffix) !== (strlen($DNlower) - strlen($suffix))) {
logNewMessage(LOG_ERR, 'User tried to access entry of type ' . $type . ' outside suffix ' . $suffix);
die();