From b0fb62f4ca41182fd737bd24180f987ceb7c3131 Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Thu, 25 Feb 2016 02:33:32 -0500
Subject: [PATCH] fixed last commit
---
interface/lib/classes/validate_server.inc.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/interface/lib/classes/validate_server.inc.php b/interface/lib/classes/validate_server.inc.php
index 9a8dfcc..6361fb4 100644
--- a/interface/lib/classes/validate_server.inc.php
+++ b/interface/lib/classes/validate_server.inc.php
@@ -46,11 +46,11 @@
* Validator function for server-ip
*/
function check_server_ip($field_name, $field_value, $validator) {
- if($_POST['ip_type'] == 'IPv41') {
+ if($_POST['ip_type'] == 'IPv4') {
if(!filter_var($field_value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
return $this->get_error($validator['errmsg']);
}
- } elseif ($_POST['ip_type'] == 'IPv61') {
+ } elseif ($_POST['ip_type'] == 'IPv6') {
if(!filter_var($field_value, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
return $this->get_error($validator['errmsg']);
}
--
Gitblit v1.9.1