fix(mrf): match domain rules literally

Escape the domain so `.` only matches a dot, and use an optional
group for the `*.` prefix, which matches the same hosts without
exponential backtracking. Bad entries now match nothing instead of
raising on every check.
This commit is contained in:
Lain Soykaf 2026-10-31 13:17:50 +04:00
commit 7e157d8cc9
No known key found for this signature in database
3 changed files with 27 additions and 20 deletions

View file

@ -0,0 +1 @@
MRF domain rules now match dots literally, so a rule for `good.example` no longer also matches `goodxexample`, and wildcard rules no longer backtrack on hostile host names