aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2017-12-23 21:38:36 +0100
committerAndreas Schwab2017-12-23 21:38:36 +0100
commit99054fbef96708054b737bbeaad0dcd0b23bb6e0 (patch)
tree2fe2b83a3077e2644fd0c0bfabf5cc338d8a1962
parentde89c0b6411c01e3ed58ac82e68b21cac985b7eb (diff)
downloademacs-99054fbef96708054b737bbeaad0dcd0b23bb6e0.tar.gz
emacs-99054fbef96708054b737bbeaad0dcd0b23bb6e0.zip
* net/eww.el (eww): Handle URLs without host part.
-rw-r--r--lisp/net/eww.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index bff592c3fe2..fcd2b98797a 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -261,9 +261,10 @@ word(s) will be searched for via `eww-search-prefix'."
261 ;; IDNA characters. If not, transform to punycode to indicate that 261 ;; IDNA characters. If not, transform to punycode to indicate that
262 ;; there may be funny business going on. 262 ;; there may be funny business going on.
263 (let ((parsed (url-generic-parse-url url))) 263 (let ((parsed (url-generic-parse-url url)))
264 (unless (puny-highly-restrictive-domain-p (url-host parsed)) 264 (when (url-host parsed)
265 (setf (url-host parsed) (puny-encode-domain (url-host parsed))) 265 (unless (puny-highly-restrictive-domain-p (url-host parsed))
266 (setq url (url-recreate-url parsed)))) 266 (setf (url-host parsed) (puny-encode-domain (url-host parsed)))
267 (setq url (url-recreate-url parsed)))))
267 (plist-put eww-data :url url) 268 (plist-put eww-data :url url)
268 (plist-put eww-data :title "") 269 (plist-put eww-data :title "")
269 (eww-update-header-line-format) 270 (eww-update-header-line-format)