GNU bug report logs - #54921
eww/url mishandles IDN over proxy

Previous Next

Package: emacs;

Reported by: Andreas Schwab <schwab <at> linux-m68k.org>

Date: Wed, 13 Apr 2022 21:43:01 UTC

Severity: normal

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 54921 <at> debbugs.gnu.org
Subject: bug#54921: eww/url mishandles IDN over proxy
Date: Thu, 14 Apr 2022 18:10:54 +0200
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> That works, but still fails with http://www.pimmelgate-süd.de/.

OK, I've pushed the https proxy fix to master, then.

Where does the plain-HTTP proxy stuff live, then?  Hm...  It could be
here, I guess.  Can you try the following patch?

diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index 96a4742956..678ee05ae5 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -195,7 +195,8 @@ url-http-find-free-connection
 	(unwind-protect
             (let ((proc (url-open-stream host buf
                                          (if url-using-proxy
-                                             (url-host url-using-proxy)
+                                             (puny-encode-domain
+                                              (url-host url-using-proxy))
                                            host)
                                          (if url-using-proxy
                                              (url-port url-using-proxy)


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 33 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.