Skip to content

Commit b0fb62f

Browse files
author
Florian Schaal
committed
fixed last commit
1 parent d83abe0 commit b0fb62f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/classes/validate_server.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ function get_error($errmsg) {
4646
* Validator function for server-ip
4747
*/
4848
function check_server_ip($field_name, $field_value, $validator) {
49-
if($_POST['ip_type'] == 'IPv41') {
49+
if($_POST['ip_type'] == 'IPv4') {
5050
if(!filter_var($field_value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
5151
return $this->get_error($validator['errmsg']);
5252
}
53-
} elseif ($_POST['ip_type'] == 'IPv61') {
53+
} elseif ($_POST['ip_type'] == 'IPv6') {
5454
if(!filter_var($field_value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
5555
return $this->get_error($validator['errmsg']);
5656
}

0 commit comments

Comments
 (0)