From b38ec6dd99892325beabd65c089847035edef3d7 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 19 Jan 2009 12:29:11 -0500 Subject: [PATCH] allow empty hostname field for several dns record types. --- interface/web/dns/form/dns_txt.tform.php | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/interface/web/dns/form/dns_txt.tform.php b/interface/web/dns/form/dns_txt.tform.php index 18054a9..923a3fa 100644 --- a/interface/web/dns/form/dns_txt.tform.php +++ b/interface/web/dns/form/dns_txt.tform.php @@ -77,10 +77,8 @@ 'name' => array ( 'datatype' => 'VARCHAR', 'formtype' => 'TEXT', - 'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY', - 'errmsg'=> 'name_error_empty'), - 1 => array ( 'type' => 'REGEX', - 'regex' => '/^[\w\.\-]{1,64}$/', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^[\w\.\-]{0,64}$/', 'errmsg'=> 'name_error_regex'), ), 'default' => '', -- Gitblit v1.9.1