diff options
| author | Lars Magne Ingebrigtsen | 2015-12-30 10:11:34 +0100 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2015-12-30 10:11:34 +0100 |
| commit | 36a0feb2971e6088cebb4a2fdc65862d395081ea (patch) | |
| tree | 05ff263c26156e7f9fe550ec01689c30f2a09d65 | |
| parent | 7c343eeaacd1454aef7ab492cbefb53d52ab6cf4 (diff) | |
| download | emacs-36a0feb2971e6088cebb4a2fdc65862d395081ea.tar.gz emacs-36a0feb2971e6088cebb4a2fdc65862d395081ea.zip | |
Restrictive URL checking tweaks
* lisp/net/eww.el (eww): Check whether the domain is
restrictive instead of the string
(http://македонија.icom.museum is restrictive even if each
part is from a different script).
| -rw-r--r-- | lisp/net/eww.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index ed19bea025e..e0964932d7d 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -280,7 +280,7 @@ word(s) will be searched for via `eww-search-prefix'." | |||
| 280 | ;; IDNA characters. If not, transform to punycode to indicate that | 280 | ;; IDNA characters. If not, transform to punycode to indicate that |
| 281 | ;; there may be funny business going on. | 281 | ;; there may be funny business going on. |
| 282 | (let ((parsed (url-generic-parse-url url))) | 282 | (let ((parsed (url-generic-parse-url url))) |
| 283 | (unless (puny-highly-restrictive-p (url-host parsed)) | 283 | (unless (puny-highly-restrictive-domain-p (url-host parsed)) |
| 284 | (setf (url-host parsed) (puny-encode-domain (url-host parsed))) | 284 | (setf (url-host parsed) (puny-encode-domain (url-host parsed))) |
| 285 | (setq url (url-recreate-url parsed)))) | 285 | (setq url (url-recreate-url parsed)))) |
| 286 | (plist-put eww-data :url url) | 286 | (plist-put eww-data :url url) |