From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: "%3f" shouldn't be unescaped in HTTP URLs Date: Mon, 15 Mar 2010 20:43:18 +0100 Message-ID: <72C29487-8C52-4919-AB8D-072642B93871@gmail.com> References: <20100309183340.960@usenet.piggo.com> <20100315191709.GA32690@edgar.terramar.selidor.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrGCD-0005zv-5m for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 15:43:25 -0400 Received: from [140.186.70.92] (port=59851 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrGCB-0005zF-R4 for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 15:43:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NrGC9-0004oZ-Vu for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 15:43:23 -0400 Received: from ey-out-1920.google.com ([74.125.78.147]:36547) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NrGC9-0004oU-RS for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 15:43:21 -0400 Received: by ey-out-1920.google.com with SMTP id 26so279422eyw.34 for ; Mon, 15 Mar 2010 12:43:20 -0700 (PDT) In-Reply-To: <20100315191709.GA32690@edgar.terramar.selidor.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ivan Vilata i Balaguer Cc: emacs-orgmode@gnu.org 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