From: Carsten Dominik <carsten.dominik@gmail.com>
To: Ivan Vilata i Balaguer <ivan@selidor.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: "%3f" shouldn't be unescaped in HTTP URLs
Date: Mon, 15 Mar 2010 20:43:18 +0100 [thread overview]
Message-ID: <72C29487-8C52-4919-AB8D-072642B93871@gmail.com> (raw)
In-Reply-To: <20100315191709.GA32690@edgar.terramar.selidor.net>
On Mar 15, 2010, at 8:17 PM, Ivan Vilata i Balaguer wrote:
> Sebastien Delafond (el 2010-03-09 a les 17:36:16 +0000) va dir::
>
>> Quoting from Debian bug #573186[0]:
>>
>> Some HTTP URLs have literal '?' in them. Since '?' also separates
>> the
>> path from query arguments, it needs to be escaped in the first case.
>> These are examples of the two cases:
>>
>> - http://en.wikipedia.org/wiki/Who%27s_Afraid_of_Virginia_Woolf%3F
>> (literal '?')
>> - http://www.google.com/search?q=org+mode (query separator)
>>
>> These are the URLs generated by Org mode when exporting them to
>> HTML:
>>
>> - http://en.wikipedia.org/wiki/Who%27s_Afraid_of_Virginia_Woolf?
>> - http://www.google.com/search?q=org+mode
>>
>> I.e. '?' is left as is, but '%3f' is unescaped, producing the wrong
>> URL (don't be fooled by the fact that Wikipedia actually accepts
>> it ;)
>> ). This makes impossible to correctly export an HTTP URL with a
>> literal question mark in it.
>>
>> The solution would be to leave '%3f' as is, too, in the same way as
>> '%27' has been left as is in the previous example.
>
> Hasn't anyone come across this behaviour? I think it's a bug which
> should be
> fixed since it makes some URLs impossible to write. And according
> to that last
> sentence, the solution doesn't seem too hard.
Hi Ivan,
the bug has not yet been fixed because my time is limited. Please
consider submitting a patch.
- Carsten
prev parent reply other threads:[~2010-03-15 19:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 17:36 "%3f" shouldn't be unescaped in HTTP URLs Sebastien Delafond
2010-03-15 19:17 ` Ivan Vilata i Balaguer
2010-03-15 19:43 ` Carsten Dominik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72C29487-8C52-4919-AB8D-072642B93871@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ivan@selidor.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.