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));