diff --git a/interface/web/sites/web_vhost_subdomain_edit.php b/interface/web/sites/web_vhost_subdomain_edit.php index 1e27593687f4e830e2841dbf0ae36ae62cff1a94..14f6b8eac2c8df9560d24e42c18ccba178821655 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 />"; }