From 982ed0ae27830c2e983eaa806d7a1fa6cc9c7f37 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 1 Oct 2014 18:45:15 +0000 Subject: [PATCH] trim LDAP suffix --- lam/templates/config/conftypes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/config/conftypes.php b/lam/templates/config/conftypes.php index f3488975..69ea40aa 100644 --- a/lam/templates/config/conftypes.php +++ b/lam/templates/config/conftypes.php @@ -401,7 +401,7 @@ function checkInput() { } // set suffixes elseif (substr($key, 0, 7) == "suffix_") { - $typeSettings[$key] = $_POST[$key]; + $typeSettings[$key] = trim($_POST[$key]); $type = substr($postKeys[$i], 7); if (strlen($_POST[$key]) < 1) { $errors[] = array("ERROR", _("LDAP Suffix is invalid!"), getTypeAlias($type));