From: Lars Ingebrigtsen Date: Mon, 28 Dec 2015 18:13:51 +0000 (+0100) Subject: Fix punycode short circuit logic X-Git-Tag: emacs-26.0.90~2837 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0e99ccb32119882af50b37264cd4662db14b1e03;p=emacs.git Fix punycode short circuit logic * puny.el (puny-encode-domain): Fix short-circuit logic. --- diff --git a/lisp/net/puny.el b/lisp/net/puny.el index 389a6dc2700..a16e3a07706 100644 --- a/lisp/net/puny.el +++ b/lisp/net/puny.el @@ -34,7 +34,7 @@ For instance, \"fśf.org\" => \"xn--ff-2sa.org\"." ;; The vast majority of domain names are not IDNA domain names, so ;; add a check first to avoid doing unnecessary work. - (if (string-match "\\'[[:ascii:]]*\\'" domain) + (if (string-match "\\'[[:ascii:]]+\\'" domain) domain (mapconcat 'puny-encode-string (split-string domain "[.]") ".")))