mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Encoding fix for browse-url-encode-url.
* lisp/net/browse-url.el (browse-url-url-encode-chars): Use upper-case. (browse-url-encode-url): Encode spaces and quotes. Fixes: debbugs:6300
This commit is contained in:
parent
bdac2d37fa
commit
00fd78ed4f
2 changed files with 7 additions and 2 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2012-05-09 Chong Yidong <cyd@gnu.org>
|
||||
|
||||
* net/browse-url.el (browse-url-url-encode-chars): Use upper-case.
|
||||
(browse-url-encode-url): Encode spaces and quotes (Bug#6300).
|
||||
|
||||
2012-05-09 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* shell.el (shell-completion-vars): Fix last change (bug#11348).
|
||||
|
|
|
|||
|
|
@ -642,7 +642,7 @@ CHARS is a regexp-like character alternative (e.g., \"[)$]\")."
|
|||
(s 0))
|
||||
(while (setq s (string-match chars encoded-text s))
|
||||
(setq encoded-text
|
||||
(replace-match (format "%%%x"
|
||||
(replace-match (format "%%%X"
|
||||
(string-to-char (match-string 0 encoded-text)))
|
||||
t t encoded-text)
|
||||
s (1+ s)))
|
||||
|
|
@ -655,7 +655,7 @@ regarding its parameter treatment."
|
|||
;; FIXME: Is there an actual example of a web browser getting
|
||||
;; confused? (This used to encode commas, but at least Firefox
|
||||
;; handles commas correctly and doesn't accept encoded commas.)
|
||||
(browse-url-url-encode-chars url "[)$]"))
|
||||
(browse-url-url-encode-chars url "[\")$] "))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; URL input
|
||||
|
|
|
|||
Loading…
Reference in a new issue