Skip to content
Snippets Groups Projects
Commit ecd0e38d authored by Marius Burkard's avatar Marius Burkard
Browse files

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
parents 675cb6a7 25d018cf
No related branches found
No related tags found
No related merge requests found
......@@ -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