mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 01:39:33 +02:00
#455 fixed IP check
This commit is contained in:
parent
1f3ef9d824
commit
a4ae34fff5
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ if (isset($_POST['submitFormData'])) {
|
||||||
}
|
}
|
||||||
// check each line
|
// check each line
|
||||||
$ipRegex = '/^[0-9a-f\\.:\\*]+$/i';
|
$ipRegex = '/^[0-9a-f\\.:\\*]+$/i';
|
||||||
if (!preg_match($ipRegex, $allowedHostsSelfServiceList[$i]) || (strlen($allowedHostsSelfServiceList[$i]) > 15)) {
|
if (!preg_match($ipRegex, $allowedHostsSelfServiceList[$i]) || (strlen($allowedHostsSelfServiceList[$i]) > 45)) {
|
||||||
$errors[] = sprintf(_("The IP address %s is invalid!"), htmlspecialchars(str_replace('%', '%%', $allowedHostsSelfServiceList[$i])));
|
$errors[] = sprintf(_("The IP address %s is invalid!"), htmlspecialchars(str_replace('%', '%%', $allowedHostsSelfServiceList[$i])));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue