Skip to content
Snippets Groups Projects
Commit 25d018cf authored by Thom's avatar Thom :tools:
Browse files

Make retrieving subdomain zones possible and allow 63 char TLDs (#4522 and #3500)

parent 2201b7a0
No related branches found
No related tags found
1 merge request!1244Make retrieving subdomain zones possible and allow 63 char TLDs
......@@ -249,7 +249,7 @@ class remoting_dns extends remoting {
return false;
}
if(!preg_match('/^[a-z0-9][a-z0-9\-]+[a-z0-9](\.[a-z]{2,4})+$/i', $origin)){
if(!preg_match('/^[\w\.\-]{2,64}\.[a-zA-Z0-9\-]{2,63}$/', $origin)){
throw new SoapFault('no_domain_found', 'Invalid domain name.');
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment