fix saving of apikey allowed-from setting

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-10-09 10:37:27 +02:00
parent 854986abcb
commit b6e4dbd70a
4 changed files with 5 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ if ($action == 'delete') {
unset ($ip_list[$idx]);
}
}
$ip_list = array_map('inet_pton', $ip_list);
$ip_list = array_map('inet_ntop', array_map('inet_pton', $ip_list));
$allowed_from = implode(",", array_unique($ip_list));
if ($valid_until <= 0 || !is_numeric($valid_until)) {