mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-10 08:21:49 +00:00
fix idn to support European chars
https://github.com/Neilpang/acme.sh/issues/331#issuecomment-255583889
This commit is contained in:
parent
9aa3be7f9f
commit
049be10406
5
acme.sh
5
acme.sh
@ -486,7 +486,10 @@ _createkey() {
|
|||||||
#domain
|
#domain
|
||||||
_is_idn() {
|
_is_idn() {
|
||||||
_is_idn_d="$1"
|
_is_idn_d="$1"
|
||||||
echo "$_is_idn_d" | grep "[^0-9a-zA-Z.,]" >/dev/null 2>&1
|
_debug2 _is_idn_d "$_is_idn_d"
|
||||||
|
_idn_temp=$(printf "%s" "$_is_idn_d" | tr -d "[0-9a-zA-Z.,-]")
|
||||||
|
_debug2 _idn_temp "$_idn_temp"
|
||||||
|
[ "$_idn_temp" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
#aa.com
|
#aa.com
|
||||||
|
Loading…
Reference in New Issue
Block a user