GNU bug report logs -
#40241
26.1; browse-url, needs to % hex hex encode the hash char
Previous Next
Reported by: larice <larice <at> vidisys.de>
Date: Thu, 26 Mar 2020 15:31:01 UTC
Severity: normal
Tags: notabug
Found in version 26.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Dear Maintainers,
I couldn't open a link in org mode, which happened
to contain a hash char #.
A search for the culprit revealed usage of this
(setq url (browse-url-encode-url url))
in several functions,
for example in browse-url-firefox in file browse-url.el
This function looks like:
(defun browse-url-encode-url (url)
"Escape annoying characters in URL.
The annoying characters are those that can mislead a web browser
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 "[\")$] "))
I suggest to add the char '#' to the second argument of the
browse-url-url-encode-chars invocation to fix the nuisance.
Best Regards,
Robert Larice
This bug report was last modified 5 years and 140 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.