浏览代码

fix subdomain validation regex

Olivier Massot 1 年之前
父节点
当前提交
5fbec9ee45
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Service/Typo3/SubdomainService.php

+ 1 - 1
src/Service/Typo3/SubdomainService.php

@@ -23,7 +23,7 @@ class SubdomainService
     public const MAX_SUBDOMAINS_NUMBER = 3;
     public const MAX_SUBDOMAINS_NUMBER = 3;
 
 
     // Validation regex for subdomains
     // Validation regex for subdomains
-    public const RX_VALIDATE_SUBDOMAIN = '/^[A-Za-z0-9](?:[A-Za-z0-9\-]{0,61}[A-Za-z0-9])?$/';
+    public const RX_VALIDATE_SUBDOMAIN = '/^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$/';
 
 
     public function __construct(
     public function __construct(
         private readonly SubdomainRepository $subdomainRepository,
         private readonly SubdomainRepository $subdomainRepository,