mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-25 12:04:44 +03:00
1e4282bd23
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.