[PR #3666] [MERGED] Fixed incorrect filtering for Punycode domains form #5503

Closed
opened 2026-10-31 20:47:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 8ef5064 Fixed 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:

  • Punycode xn--e1afmkfd.xn--p1ai for IDN domain пример.рф previously failed to pass filtering and an SSL certificate could not be issued for it. This problem has now been fixed.
  • However, this fix still does not allow simple use IDN domain пример.рф, since it is not clear whether a Unicode domain will break anything.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3666 **Author:** [@VolgaIgor](https://github.com/VolgaIgor) **Created:** 1/11/2026 **Status:** ✅ Merged **Merged:** 1/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix-idn-domain-check` --- ### 📝 Commits (1) - [`8ef5064`](https://github.com/MHSanaei/3x-ui/commit/8ef50647adf81a951ee8650b582c5fe07d2556ba) Fixed incorrect filtering for IDN top-level domains ### 📊 Changes **3 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `install.sh` (+1 -1) 📝 `update.sh` (+1 -1) 📝 `x-ui.sh` (+1 -1) </details> ### 📄 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: - Punycode `xn--e1afmkfd.xn--p1ai` for IDN domain `пример.рф` previously failed to pass filtering and an SSL certificate could not be issued for it. This problem has now been fixed. - However, this fix still does not allow simple use IDN domain `пример.рф`, since it is not clear whether a Unicode domain will break anything. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other ## Screenshots <img width="881" height="141" alt="image" src="https://github.com/user-attachments/assets/d5234070-0ad3-41e1-9939-7e2e813fa4e5" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:25 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5503
No description provided.