From d0a1cbff13ddc1f2891e634a700116c0bb37a057 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 22 Oct 2012 05:45:22 -0400
Subject: [PATCH] Fixed: FS#2491 - dns_soa.tform.php Also Notify option validation is commented!
---
interface/web/dns/form/dns_soa.tform.php | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/interface/web/dns/form/dns_soa.tform.php b/interface/web/dns/form/dns_soa.tform.php
index 00c2aac..4481d5a 100644
--- a/interface/web/dns/form/dns_soa.tform.php
+++ b/interface/web/dns/form/dns_soa.tform.php
@@ -225,10 +225,14 @@
'also_notify' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
-// 'validators' => array ( 0 => array ( 'type' => 'ISIPV4',
+ 'validators' => array ( 0 => array ( 'type' => 'REGEX',
+ 'regex' => '/^(((25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})\.){3}(25[0-5]|2[0-4][0-9]|1?[0-9]{1,2})(;){0,1}(\ ){0,1}){0,10}$/',
+ 'errmsg'=> 'also_notify_error_regex'
+ ),
+// 0 => array ( 'type' => 'ISIPV4',
// 'errmsg'=> 'also_notify_error_regex'
// ),
-// ),
+ ),
'default' => '',
'value' => '',
'width' => '30',
--
Gitblit v1.9.1