fix(yeswiki-installer) : better subdomain test
This commit is contained in:
parent
6ecb34cee5
commit
8d381200ca
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@ if (0 == posix_getuid()) {
|
||||||
$noip6 = $climate->arguments->get('noip6');
|
$noip6 = $climate->arguments->get('noip6');
|
||||||
$herseUser = $climate->arguments->get('herseuser');
|
$herseUser = $climate->arguments->get('herseuser');
|
||||||
$hersePass = $climate->arguments->get('hersepass');
|
$hersePass = $climate->arguments->get('hersepass');
|
||||||
$isFullDomain = !preg_match('/.'.$_SERVER['maindomain'].'$/isU', $domain, $matches, PREG_OFFSET_CAPTURE, 0);
|
|
||||||
|
//$isFullDomain = !preg_match('/.'.$_SERVER['maindomain'].'$/isU', $domain, $matches, PREG_OFFSET_CAPTURE, 0);
|
||||||
|
$isFullDomain = !preg_match('/^([a-zA-Z0-9]([-a-zA-Z0-9]{0,61}[a-zA-Z0-9])\.)([a-zA-Z0-9]{1,2}([-a-zA-Z0-9]{0,252}[a-zA-Z0-9])?)\.([a-zA-Z]{2,63})$/isU', $domain, $matches, PREG_OFFSET_CAPTURE, 0);
|
||||||
if (!$nossl) {
|
if (!$nossl) {
|
||||||
checkDNS($domain, $isFullDomain, $noip6);
|
checkDNS($domain, $isFullDomain, $noip6);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue