From 9ae403365633fd4731ab88b61d332c25b1f5c577 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Thu, 16 Sep 2010 15:27:40 -0400
Subject: [PATCH] Changed max. length for PTR records from 64 to 255 chars.

---
 install/sql/ispconfig3.sql               |    2 +-
 interface/web/dns/form/dns_ptr.tform.php |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/install/sql/ispconfig3.sql b/install/sql/ispconfig3.sql
index 3394449..f1615e1 100644
--- a/install/sql/ispconfig3.sql
+++ b/install/sql/ispconfig3.sql
@@ -202,7 +202,7 @@
   `sys_perm_other` varchar(5) NOT NULL,
   `server_id` int(11) NOT NULL default '1',
   `zone` int(11) unsigned NOT NULL,
-  `name` varchar(64) NOT NULL,
+  `name` varchar(255) NOT NULL,
   `type` enum('A','AAAA','ALIAS','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') default NULL,
   `data` varchar(255) NOT NULL,
   `aux` int(11) unsigned NOT NULL default '0',
diff --git a/interface/web/dns/form/dns_ptr.tform.php b/interface/web/dns/form/dns_ptr.tform.php
index 6732968..01a1234 100644
--- a/interface/web/dns/form/dns_ptr.tform.php
+++ b/interface/web/dns/form/dns_ptr.tform.php
@@ -78,7 +78,7 @@
 			'datatype'	=> 'VARCHAR',
 			'formtype'	=> 'TEXT',
 			'validators'	=> array ( 	0 => array (	'type'	=> 'REGEX',
-														'regex' => '/^[\w\.\-]{1,64}$/',
+														'regex' => '/^[\w\.\-]{1,256}$/',
 														'errmsg'=> 'name_error_regex'),
 									),
 			'default'	=> '',
@@ -100,7 +100,7 @@
 			'validators'	=> array ( 	0 => array (	'type'	=> 'NOTEMPTY',
 														'errmsg'=> 'data_error_empty'),
 										1 => array (	'type'	=> 'REGEX',
-														'regex' => '/^[\w\.\-]{1,64}$/',
+														'regex' => '/^[\w\.\-]{1,256}$/',
 														'errmsg'=> 'data_error_regex'),
 									),
 			'default'	=> '',

--
Gitblit v1.9.1