Commit 132f4472 authored by Mark Oteiza's avatar Mark Oteiza

Hexify strings in EWW search queries

Previously, inputting "cats & dogs" would lose dogs because the
ampersand signifies a query parameter.  Instead, hexify each word while
preserving quotes with split-string.
* lisp/net/eww.el (eww--dwim-expand-url): Join hexified words together
with + separators, instead of replacing whitespace with +.
parent 48116f91
......@@ -297,7 +297,8 @@ word(s) will be searched for via `eww-search-prefix'."
(when (string= (url-filename (url-generic-parse-url url)) "")
(setq url (concat url "/"))))
(setq url (concat eww-search-prefix
(replace-regexp-in-string " " "+" url))))))
#'url-hexify-string (split-string url) "+"))))))
;;;###autoload (defalias 'browse-web 'eww)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment