Skip to content

Commit ecd0e38

Browse files
author
Marius Burkard
committed
Merge branch '4522-sub-regex' into 'develop'
Make retrieving subdomain zones possible and allow 63 char TLDs Closes #4522 See merge request ispconfig/ispconfig3!1244
2 parents 675cb6a + 25d018c commit ecd0e38

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
@@ -249,7 +249,7 @@ public function dns_zone_get_id($session_id, $origin) {
249249
return false;
250250
}
251251

252-
if(!preg_match('/^[a-z0-9][a-z0-9\-]+[a-z0-9](\.[a-z]{2,4})+$/i', $origin)){
252+
if(!preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z0-9\-]{2,63}$/', $origin)){
253253
throw new SoapFault('no_domain_found', 'Invalid domain name.');
254254
return false;
255255
}

0 commit comments

Comments
 (0)