3x-ui/internal
MHSanaei a335456cd3 fix(settings): repair legacy path settings that block every settings save
A subJsonPath (or subPath/subClashPath/webBasePath) stored without its
leading/trailing slash — written before the slash rules existed, or
restored from an old backup — fails the frontend's whole-form validation,
so every save on the Settings page is rejected client-side. The backend's
CheckValid would normalize the value, but a save request never reaches it,
leaving the panel wedged until someone edits the database by hand.

Normalize the stored path rows at startup, mirroring CheckValid's slash
rules. The pass is idempotent and not seeder-gated, since a restored
backup can reintroduce bad values at any time.

Also add the missing pages.settings.validation.pathLeadingSlash key to
all 13 locales — the validation error used to render as its raw key.

Closes #5726
2026-07-02 13:42:03 +02:00
..
config 3.4.2 2026-06-29 20:28:08 +02:00
database fix(settings): repair legacy path settings that block every settings save 2026-07-02 13:42:03 +02:00
eventbus style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
logger style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
mtproto style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
sub feat(reality): derive a stable per-client spiderX for shared links 2026-07-02 12:53:08 +02:00
tunnelmonitor style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
util feat: ldap skip tls verify (#5637) 2026-06-28 18:10:38 +02:00
web fix(settings): repair legacy path settings that block every settings save 2026-07-02 13:42:03 +02:00
xray fix(xray): reconcile client auto-disable through the API instead of a forced restart 2026-07-02 09:26:53 +02:00