Commit baa7f273 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed vhostsubdomain not empty regex check to allow 1 char subdomains.

parent ce1c6d84
...@@ -349,7 +349,7 @@ class page_action extends tform_actions { ...@@ -349,7 +349,7 @@ class page_action extends tform_actions {
if($app->tform->getCurrentTab() == 'domain') { if($app->tform->getCurrentTab() == 'domain') {
// Check that domain (the subdomain part) is not empty // 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 />"; $app->tform->errorMessage .= $app->tform->lng("subdomain_error_empty")."<br />";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment