From 8da3326f64aaeb47f4306a4bacc3067d4bc38141 Mon Sep 17 00:00:00 2001 From: Daniele Nicolodi Date: Fri, 10 Jul 2020 18:50:39 -0600 Subject: [PATCH 2/2] url-http: Do not suggest a broken HTTP server implementation Relative URIs are allowed in the Location header by the relvant RFCs. --- lisp/url/url-http.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index a746be8475..e0c925e13f 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el @@ -702,9 +702,7 @@ should be shown to the user." ;; Treat everything like '300' nil)) (when redirect-uri - ;; Some stupid sites (like sourceforge) send a - ;; non-fully-qualified URL (ie: /), which royally confuses - ;; the URL library. + ;; Handle relative redirect URIs. (if (not (string-match url-nonrelative-link redirect-uri)) ;; Be careful to use the real target URL, otherwise we may ;; compute the redirection relative to the URL of the proxy. -- 2.24.3 (Apple Git-128)