From 5ebfd817903d8af41f9553cd37d87c9080248004 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 6 Jul 2008 12:57:20 +0000
Subject: [PATCH] Fixed a bug in Email regex for DNS Manager.

---
 interface/web/dns/form/dns_soa.tform.php     | 6 +++---
 interface/web/sites/lib/lang/en_database.lng | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/interface/web/dns/form/dns_soa.tform.php b/interface/web/dns/form/dns_soa.tform.php
index be0a1236f5..e9a8f431d2 100644
--- a/interface/web/dns/form/dns_soa.tform.php
+++ b/interface/web/dns/form/dns_soa.tform.php
@@ -94,7 +94,7 @@ $form["tabs"]['dns_soa'] = array (
 			'datatype'	=> 'VARCHAR',
 			'formtype'	=> 'TEXT',
 			'validators'	=> array ( 	0 => array (	'type'	=> 'REGEX',
-														'regex' => '/^[\w\.\-]{0,64}$/',
+														'regex' => '/^[\w\.\-]{1,64}$/',
 														'errmsg'=> 'ns_error_regex'),
 									),
 			'default'	=> '',
@@ -107,8 +107,8 @@ $form["tabs"]['dns_soa'] = array (
 			'formtype'	=> 'TEXT',
 			'validators'	=> array ( 	0 => array (	'type'	=> 'NOTEMPTY',
 														'errmsg'=> 'mbox_error_empty'),
-										0 => array (	'type'	=> 'REGEX',
-														'regex' => '/^[\w\.\-]{0,64}$/',
+										1 => array (	'type'	=> 'REGEX',
+														'regex' => '/^[\w\.\-]{0,64}\.$/',
 														'errmsg'=> 'mbox_error_regex'),
 									),
 			'default'	=> '',
diff --git a/interface/web/sites/lib/lang/en_database.lng b/interface/web/sites/lib/lang/en_database.lng
index 1dafa2061c..1399a9ef64 100644
--- a/interface/web/sites/lib/lang/en_database.lng
+++ b/interface/web/sites/lib/lang/en_database.lng
@@ -5,6 +5,7 @@ $wb["database_name_txt"] = 'Database name';
 $wb["database_user_txt"] = 'Database user';
 $wb["database_password_txt"] = 'Database password';
 $wb["remote_access_txt"] = 'Remote Access';
+$wb["client_txt"] = 'Client';
 $wb["active_txt"] = 'Active';
 $wb["btn_save_txt"] = 'Save';
 $wb["btn_cancel_txt"] = 'Cancel';
-- 
GitLab