mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
Fix 'url-parse-query-string'
* lisp/url/url-util.el (url-parse-query-string): Fix use of 'match-beginning' and 'match-end'. (Bug#81430)
This commit is contained in:
parent
94ee683d63
commit
ade36467bf
|
|
@ -230,10 +230,12 @@ Will not do anything if `url-show-status' is nil."
|
|||
(setq cur (concat cur "=")))
|
||||
|
||||
(when (string-match "=" cur)
|
||||
(setq key (url-unhex-string (substring cur 0 (match-beginning 0))
|
||||
allow-newlines))
|
||||
(setq val (url-unhex-string (substring cur (match-end 0) nil)
|
||||
allow-newlines))
|
||||
(let ((beg (match-beginning 0))
|
||||
(end (match-end 0)))
|
||||
(setq key (url-unhex-string (substring cur 0 beg)
|
||||
allow-newlines))
|
||||
(setq val (url-unhex-string (substring cur end nil)
|
||||
allow-newlines)))
|
||||
(if downcase
|
||||
(setq key (downcase key)))
|
||||
(setq cur (assoc key retval))
|
||||
|
|
|
|||
Loading…
Reference in a new issue