From d0a1cbff13ddc1f2891e634a700116c0bb37a057 Mon Sep 17 00:00:00 2001 From: tbrehm Date: Mon, 22 Oct 2012 09:45:22 +0000 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 file 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 00c2aacebe..4481d5aa47 100644 --- a/interface/web/dns/form/dns_soa.tform.php +++ b/interface/web/dns/form/dns_soa.tform.php @@ -225,10 +225,14 @@ $form["tabs"]['dns_soa'] = array ( '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', -- GitLab