mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3666] [MERGED] Fixed incorrect filtering for Punycode domains form #5503
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#5503
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/3666
Author: @VolgaIgor
Created: 1/11/2026
Status: ✅ Merged
Merged: 1/12/2026
Merged by: @MHSanaei
Base:
main← Head:fix-idn-domain-check📝 Commits (1)
8ef5064Fixed incorrect filtering for IDN top-level domains📊 Changes
3 files changed (+3 additions, -3 deletions)
View changed files
📝
install.sh(+1 -1)📝
update.sh(+1 -1)📝
x-ui.sh(+1 -1)📄 Description
What is the pull request?
CLI scripts for create SSL certs use a simple domain check that does not allow IDN domains and Punycode domains form. Since the code creates folders with domain names, I'm not sure if the domain written in the local language will not break any of the scripts. So I just fixed the filtering for Punycode representation of IDN domains. Also the regex in all 3 files have been unified.
Example:
xn--e1afmkfd.xn--p1aifor IDN domainпример.рфpreviously failed to pass filtering and an SSL certificate could not be issued for it. This problem has now been fixed.пример.рф, since it is not clear whether a Unicode domain will break anything.Which part of the application is affected by the change?
Type of Changes
Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.