From 27c68d11b9cd24fc09158d75c44380fba69225b2 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 1 Oct 2014 18:13:16 +0000 Subject: [PATCH] fix for DN that includes a " ," --- lam/templates/account/edit.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lam/templates/account/edit.php b/lam/templates/account/edit.php index 396afeab..f7c04c1f 100644 --- a/lam/templates/account/edit.php +++ b/lam/templates/account/edit.php @@ -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();