mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1270 from YunoHost/enh-punycode
[fix] Better support for non latin domain name
This commit is contained in:
commit
253ec15076
1 changed files with 3 additions and 0 deletions
|
@ -115,6 +115,9 @@ def domain_add(operation_logger, domain, dyndns=False):
|
|||
# See: https://forum.yunohost.org/t/invalid-domain-causes-diagnosis-web-to-fail-fr-on-demand/11765
|
||||
domain = domain.lower()
|
||||
|
||||
# Non-latin characters (e.g. café.com => xn--caf-dma.com)
|
||||
domain = domain.encode('idna').decode('utf-8')
|
||||
|
||||
# DynDNS domain
|
||||
if dyndns:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue