all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#40241: 26.1; browse-url, needs to % hex hex encode the hash char
@ 2020-03-26 10:16 larice
       [not found] ` <handler.40241.B.158523660627281.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 5+ messages in thread
From: larice @ 2020-03-26 10:16 UTC (permalink / raw)
  To: 40241

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
  





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-27 12:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-26 10:16 bug#40241: 26.1; browse-url, needs to % hex hex encode the hash char larice
     [not found] ` <handler.40241.B.158523660627281.ack@debbugs.gnu.org>
2020-03-26 16:49   ` bug#40241: Acknowledgement (26.1; browse-url, needs to % hex hex encode the hash char) larice
2020-03-26 23:52     ` Noam Postavsky
2020-03-27  7:47       ` larice
2020-03-27 12:30         ` Noam Postavsky

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.