mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-04 23:21:31 +00:00
A support URL saved without a scheme (e.g. "t.me/handle") is served verbatim in the subscription Support-Url header and page data, and client apps resolve it relative to the subscription domain — clicking it lands on "https://panel.example/t.me/handle". Same hazard for the profile URL. Default the scheme to https:// when none is present, both when saving the settings and when reading already-stored values, so existing databases are covered without a migration. Deliberate non-http schemes (tg://, mailto:, tel:) pass through untouched, which is why these two fields don't go through SanitizeHTTPURL's http(s)-only validation. Closes #5738 |
||
|---|---|---|
| .. | ||
| err.go | ||
| format.go | ||
| format_mutation_test.go | ||
| format_test.go | ||
| gorecover_test.go | ||
| multi_error.go | ||
| multi_error_test.go | ||
| url.go | ||
| url_test.go | ||