From 43824ba30fc122ca5f1d196ef72006e285c7abab Mon Sep 17 00:00:00 2001
From: latham <latham@ispconfig3>
Date: Mon, 13 Jun 2011 09:19:49 -0400
Subject: [PATCH] Validate DNS notify host. Customers were putting email addresses in there. Testing for IP addresses.

---
 interface/web/dns/form/dns_soa.tform.php |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/interface/web/dns/form/dns_soa.tform.php b/interface/web/dns/form/dns_soa.tform.php
index 9599f4c..fb5b04a 100644
--- a/interface/web/dns/form/dns_soa.tform.php
+++ b/interface/web/dns/form/dns_soa.tform.php
@@ -175,6 +175,10 @@
 		'also_notify' => array (
 			'datatype'	=> 'VARCHAR',
 			'formtype'	=> 'TEXT',
+			'validators'    => array (  0 => array (    'type'  => 'ISIPV4',
+														'errmsg'=> 'also_notify_error_regex'
+													),
+									),
 			'default'	=> '',
 			'value'		=> '',
 			'width'		=> '30',

--
Gitblit v1.9.1