Till Brehm
2014-02-17 baa7f2736bc91ca3feaed685e8a67a46db4fbb98
Fixed vhostsubdomain not empty regex check to allow 1 char subdomains.
1 files modified
2 ■■■ changed files
interface/web/sites/web_vhost_subdomain_edit.php 2 ●●● patch | view | raw | blame | history
interface/web/sites/web_vhost_subdomain_edit.php
@@ -349,7 +349,7 @@
        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 />";
            }