trim LDAP suffix

This commit is contained in:
Roland Gruber 2014-10-01 18:45:15 +00:00
parent f18bc7e38c
commit 982ed0ae27
1 changed files with 1 additions and 1 deletions

View File

@ -401,7 +401,7 @@ function checkInput() {
} }
// set suffixes // set suffixes
elseif (substr($key, 0, 7) == "suffix_") { elseif (substr($key, 0, 7) == "suffix_") {
$typeSettings[$key] = $_POST[$key]; $typeSettings[$key] = trim($_POST[$key]);
$type = substr($postKeys[$i], 7); $type = substr($postKeys[$i], 7);
if (strlen($_POST[$key]) < 1) { if (strlen($_POST[$key]) < 1) {
$errors[] = array("ERROR", _("LDAP Suffix is invalid!"), getTypeAlias($type)); $errors[] = array("ERROR", _("LDAP Suffix is invalid!"), getTypeAlias($type));