From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Delafond Subject: "%3f" shouldn't be unescaped in HTTP URLs Date: Tue, 9 Mar 2010 17:36:16 +0000 (UTC) Message-ID: <20100309183340.960@usenet.piggo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Np3Np-0005iL-If for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 12:38:17 -0500 Received: from [140.186.70.92] (port=44321 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np3Nn-0005gv-Um for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 12:38:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Np3Nl-0001ml-4o for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 12:38:13 -0500 Received: from lo.gmane.org ([80.91.229.12]:47814) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Np3Nk-0001mV-Uo for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 12:38:13 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Np3Mh-0000C6-5L for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 18:37:07 +0100 Received: from 64.2.3.200 ([64.2.3.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Mar 2010 18:37:07 +0100 Received: from sdelafond by 64.2.3.200 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Mar 2010 18:37:07 +0100 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: emacs-orgmode@gnu.org 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. What do you guys think ? Cheers, --Seb [0] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573186