View Single Post
  #7  
Old 15th October 2010, 17:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

I think you need to change the regex in interface/web/dns/form/dns_soa.tform.php. Maybe you can change

Code:
'origin' => array (
                        'datatype'        => 'VARCHAR',
                        'formtype'        => 'TEXT',
                        'validators'        => array (         0 => array (        'type'        => 'NOTEMPTY',
                                                                                                                'errmsg'=> 'origin_error_empty'),
                                                                                1 => array (        'type'        => 'UNIQUE',
                                                                                                                'errmsg'=> 'origin_error_unique'),
                                                                                2 => array (        'type'        => 'REGEX',
                                                                                                                'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,10}[\.]{0,1}$/',
                                                                                                                'errmsg'=> 'origin_error_regex'),
to

Code:
'origin' => array (
                        'datatype'        => 'VARCHAR',
                        'formtype'        => 'TEXT',
                        'validators'        => array (         0 => array (        'type'        => 'NOTEMPTY',
                                                                                                                'errmsg'=> 'origin_error_empty'),
                                                                                1 => array (        'type'        => 'UNIQUE',
                                                                                                                'errmsg'=> 'origin_error_unique'),
                                                                                2 => array (        'type'        => 'REGEX',
                                                                                                                'regex' => '/^[\w\.\-]{2,64}\.[a-zA-Z]{2,30}[\.]{0,1}$/',
                                                                                                                'errmsg'=> 'origin_error_regex'),
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote