Files
mirror-3x-ui/internal/web/middleware
Aleksey Fedorov 1e4282bd23 fix(domain): compare panel and subscription domains case-insensitively (#7181)
DomainValidatorMiddleware compared the saved domain with the request
host byte for byte. Host names are case-insensitive and may end with the
root's dot, so a domain saved as Panel.Example.com, with a stray space,
or a Host header like panel.example.com. answered every request with
403, the settings page included, and the admin could not undo it from
the UI.

Both sides are now normalized before the comparison. Saving the settings
stores the domain in that form and refuses a scheme, port or path, which
could never equal the port-stripped host and locked the panel the same
way.
2026-11-23 23:34:53 +03:30
..