mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6685] [MERGED] Fix clients group filter and search for non-ASCII capitals #6409
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6409
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6685
Author: @freeb5d
Created: 9/29/2026
Status: ✅ Merged
Merged: 10/2/2026
Merged by: @MHSanaei
Base:
main← Head:fix/clients-filter-unicode-case📝 Commits (2)
a50decaMatch non-ASCII capitals in the clients group filter and search2b70c7fMatch lower, upper and title-case spellings for non-ASCII search and group filter📊 Changes
2 files changed (+93 additions, -11 deletions)
View changed files
📝
internal/web/service/client_paging.go(+60 -11)📝
internal/web/service/client_paging_test.go(+33 -0)📄 Description
Fixes #6680
Problem
The Clients page lower-cases the group and search term in Go (Unicode-aware) but compares them with SQLite
LOWER(), which only folds ASCII. A group such asТестis sent asтестand never matches the storedТест. Search has the same mismatch.Change
... IN lowered OR ... IN raw).TestListPagedNonASCIICase(Cyrillic group and comment).Limitation
Matching uses the lower, as-typed, upper and title-case spellings of the term, so common casings match. Odd mixed-case spellings (e.g. пРИвет stored as such) can still miss on SQLite.
Testing
Not run: my environment has no C compiler for the SQLite driver. Files are gofmt-clean. Please rely on CI.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.