We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b275a05 + 2a9c284 commit 0a74010Copy full SHA for 0a74010
interface/lib/classes/remote.d/dns.inc.php
@@ -240,7 +240,7 @@ public function dns_zone_get_id($session_id, $origin)
240
return false;
241
}
242
243
- if(!preg_match('/^[a-z0-9][a-z0-9\-]+[a-z0-9](\.[a-z]{2,4})+$/i', $origin)){
+ if(!preg_match('/^([a-z0-9][a-z0-9\-]+[a-z0-9]|[a-z0-9]{2})(\.[a-z]{2,63})+$/i', $origin)){
244
throw new SoapFault('no_domain_found', 'Invalid domain name.');
245
246
0 commit comments