mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3734] [MERGED] fix: trim whitespace from comma-separated list values in routing rules #5514
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#5514
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/3734
Author: @Alimpo
Created: 2/2/2026
Status: ✅ Merged
Merged: 2/2/2026
Merged by: @MHSanaei
Base:
main← Head:fix-whitespace-from-comma-sepretad-list-fields-in-routing📝 Commits (1)
1f2ffc4fix: trim whitespace from comma-separated list values in routing rules📊 Changes
1 file changed (+4 additions, -4 deletions)
View changed files
📝
web/html/modals/xray_rule_modal.html(+4 -4)📄 Description
What is the pull request?
This pull request fixes a bug where comma-separated values in routing rule fields were not properly trimmed of whitespace. When users entered values like
"user1, user2"in the User field (or other comma-separated fields), the space after the comma was preserved, resulting in["user1", " user2"]instead of["user1", "user2"].The fix adds
.map(s => s.trim())to thegetResult()function in the routing rule modal to trim whitespace from each element after splitting comma-separated values. This affects theuser,domain,ip, andsourceIPfields.Which part of the application is affected by the change?
Type of Changes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.