Disallow wildcard partial domains when using MatchDomainName.

This commit is contained in:
Kareem
2026-03-16 16:21:47 -07:00
parent 416072f298
commit 76c52c31fb
+5
View File
@@ -13199,6 +13199,11 @@ int MatchDomainName(const char* pattern, int patternLen, const char* str,
/* Only single wildcard allowed with strict left only */
if (leftWildcardOnly) {
/* For the left wildcard only case, disallow wildcards with
* the pattern *domain.com and only allow *.domain.com. */
if (patternLen > 0 && *pattern != '.')
return 0;
wildcardEligible = 0;
}