From baa7f2736bc91ca3feaed685e8a67a46db4fbb98 Mon Sep 17 00:00:00 2001 From: Till Brehm <tbrehm@ispconfig.org> Date: Mon, 17 Feb 2014 11:02:38 +0100 Subject: [PATCH] Fixed vhostsubdomain not empty regex check to allow 1 char subdomains. --- interface/web/sites/web_vhost_subdomain_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/web/sites/web_vhost_subdomain_edit.php b/interface/web/sites/web_vhost_subdomain_edit.php index 1e27593687..14f6b8eac2 100644 --- a/interface/web/sites/web_vhost_subdomain_edit.php +++ b/interface/web/sites/web_vhost_subdomain_edit.php @@ -349,7 +349,7 @@ class page_action extends tform_actions { if($app->tform->getCurrentTab() == 'domain') { // Check that domain (the subdomain part) is not empty - if(!preg_match('/^[a-zA-Z0-9].+/',$this->dataRecord['domain'])) { + if(!preg_match('/^[a-zA-Z0-9].*/',$this->dataRecord['domain'])) { $app->tform->errorMessage .= $app->tform->lng("subdomain_error_empty")."<br />"; } -- GitLab