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.
1 parent b275a05 commit 2a9c284Copy full SHA for 2a9c284
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