aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-13 16:41:13 +0200
committerLars Ingebrigtsen2018-04-13 16:41:13 +0200
commit560553b1fa2247b7e2b28dd2fe7f404040dacac6 (patch)
tree02dae5de819e844090fe1a6d1cbb31a5fea3e122
parenta53bac31426397fcf9e1a52fecb9a1e281492867 (diff)
downloademacs-560553b1fa2247b7e2b28dd2fe7f404040dacac6.tar.gz
emacs-560553b1fa2247b7e2b28dd2fe7f404040dacac6.zip
(url-http): Ensure that the referrer is all-ASCII
* lisp/url/url-http.el (url-http): Ensure that the referrer is all-ASCII.
-rw-r--r--lisp/url/url-http.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el
index bb3e76997a8..d45bb323b12 100644
--- a/lisp/url/url-http.el
+++ b/lisp/url/url-http.el
@@ -1291,7 +1291,7 @@ The return value of this function is the retrieval buffer."
1291 (buffer (or retry-buffer 1291 (buffer (or retry-buffer
1292 (generate-new-buffer 1292 (generate-new-buffer
1293 (format " *http %s:%d*" (url-host url) (url-port url))))) 1293 (format " *http %s:%d*" (url-host url) (url-port url)))))
1294 (referer (url-http--get-referer url))) 1294 (referer (url-http--encode-string (url-http--get-referer url))))
1295 (if (not connection) 1295 (if (not connection)
1296 ;; Failed to open the connection for some reason 1296 ;; Failed to open the connection for some reason
1297 (progn 1297 (progn