From 28cd07d1a75c4e9dcaecac49efee0091f2fc62fa Mon Sep 17 00:00:00 2001
From: A. Täffner <darkalex@firesplash.de>
Date: Thu, 07 Apr 2016 05:30:49 -0400
Subject: [PATCH] Implemented a checkbox "enable DNSSEC" in DNS-Wizard. This Checkbox can be enabled or disabled by template.
---
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