fix api-key edit (thx Davidd), fix dns-editor ttl field (thx Rolf)

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-12-05 20:58:57 +01:00
parent 5b7a76b608
commit 609c15688c
3 changed files with 11 additions and 9 deletions

View File

@@ -268,8 +268,7 @@ class Ajax
$_check_list = $ip_list;
foreach ($_check_list as $idx => $ip) {
if (Validate::validate_ip2($ip, true, 'invalidip', true, true, true) == false) {
unset($ip_list[$idx]);
continue;
return $this->errorResponse('Invalid ip address', 406);
}
// check for cidr
if (strpos($ip, '/') !== false) {