mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4695] [Bug]: Email with slash character breaks API and Web UI (404 error) #3244
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#3244
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?
Originally created by @Necroflex1 on GitHub (May 30, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4695
Describe the bug
When a client's email address contains a slash character (
/), the 3x-ui panel's web interface and API endpoints for that client return an HTTP 404 error. This makes it impossible to manage (edit, delete, or view) the affected client through the UI. The issue was first encountered in a multi-node setup.How to reproduce the problem
R/Rortest/test.Expected behavior
The panel should handle the email address correctly, and all management actions (edit, delete, view) should work without errors. Alternatively, the panel should prevent the creation of an email address with invalid characters (such as
/) and display a clear error message to the user.Actual behavior
Relevant logs
Screenshots
No response
3x-ui version
3.2.0
Xray-core version
26.5.9
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 20.04 lts
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@MHSanaei commented on GitHub (May 30, 2026):
Resolved via the prevention approach suggested in the issue: client emails are now validated and reject '/', '', spaces, and control characters, with a clear localized error shown at save time.
Validation runs on both layers:
The error message was translated across all 13 locales.
Note for anyone with an already-stuck client (created before this fix): it can be removed from the panel via multi-select then Delete, since the bulk-delete endpoint sends the email in the request body rather than in the URL path.