From 311c106690120ce238265bbe6e8faf3144611847 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 30 Sep 2014 17:19:05 +0000 Subject: [PATCH] fixed problem with DN check --- lam/templates/account/edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lam/templates/account/edit.php b/lam/templates/account/edit.php index 0fb2490b..396afeab 100644 --- a/lam/templates/account/edit.php +++ b/lam/templates/account/edit.php @@ -74,8 +74,9 @@ if (isset($_GET['DN'])) { $DN = substr($DN, 0, -1); } } - $suffix = $_SESSION['config']->get_Suffix($type); - if (strpos($DN, $suffix) !== (strlen($DN) - strlen($suffix))) { + $suffix = strtolower($_SESSION['config']->get_Suffix($type)); + $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); die(); }