From a3ce7daa565942496ca4d7e566be4ff6dafc0711 Mon Sep 17 00:00:00 2001
From: Nick Andriopoulos <nand@hexblot.com>
Date: Wed, 06 Apr 2016 11:27:20 -0400
Subject: [PATCH] Refs #3817 - Adds a CLIENTID token parsed only for the "Add Client" form from a Reseller
---
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