Skip to content

Commit 0a74010

Browse files
author
Till Brehm
committed
Merge branch '4522-fix-regex' into 'master'
Resolve "Remote DNS: Getting zone id of subdomain prohibited by regex" Closes #4522 See merge request ispconfig/ispconfig3!774
2 parents b275a05 + 2a9c284 commit 0a74010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/remote.d/dns.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function dns_zone_get_id($session_id, $origin)
240240
return false;
241241
}
242242

243-
if(!preg_match('/^[a-z0-9][a-z0-9\-]+[a-z0-9](\.[a-z]{2,4})+$/i', $origin)){
243+
if(!preg_match('/^([a-z0-9][a-z0-9\-]+[a-z0-9]|[a-z0-9]{2})(\.[a-z]{2,63})+$/i', $origin)){
244244
throw new SoapFault('no_domain_found', 'Invalid domain name.');
245245
return false;
246246
}

0 commit comments

Comments
 (0)