From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vilata i Balaguer Subject: Re: "%3f" shouldn't be unescaped in HTTP URLs Date: Mon, 15 Mar 2010 20:17:09 +0100 Message-ID: <20100315191709.GA32690@edgar.terramar.selidor.net> References: <20100309183340.960@usenet.piggo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2040763382==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NrFmu-0007lz-JS for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 15:17:16 -0400 Received: from [140.186.70.92] (port=38635 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NrFmq-0007h0-3c for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 15:17:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NrFmo-0001io-Li for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 15:17:12 -0400 Received: from lev.selidor.net ([66.246.138.156]:60388) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NrFmo-0001ie-IG for emacs-orgmode@gnu.org; Mon, 15 Mar 2010 15:17:10 -0400 In-Reply-To: <20100309183340.960@usenet.piggo.com> 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 --===============2040763382== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FCuugMFkClbJLl1L" Content-Disposition: inline --FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sebastien Delafond (el 2010-03-09 a les 17:36:16 +0000) va dir:: > Quoting from Debian bug #573186[0]: >=20 > 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: >=20 > - http://en.wikipedia.org/wiki/Who%27s_Afraid_of_Virginia_Woolf%3F > (literal '?') > - http://www.google.com/search?q=3Dorg+mode (query separator) >=20 > These are the URLs generated by Org mode when exporting them to HTML: >=20 > - http://en.wikipedia.org/wiki/Who%27s_Afraid_of_Virginia_Woolf? > - http://www.google.com/search?q=3Dorg+mode >=20 > 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. >=20 > 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. Thanks and cheers, :: Ivan Vilata i Balaguer -- http://ivan.lovesgazpacho.net/ --FCuugMFkClbJLl1L Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iJwEAQECAAYFAkueh7EACgkQpE7JSd+luc47PgQAgQDORNZgBQiBaI6Rx3HAJ+8R o/SUuG9D98bFXZCrxvYNM4f5EUkvs0qmbLiQ3E4UpYa6efVO0atT58n9WgAVch9j FeHNWwSzuqbGo1e2LDk6c0vLaN3upnNa899IVSv7nU85dz34oyhHAeY/Y91pFu3y aqVFMsJ7K11NrwEF0kw= =YK/1 -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L-- --===============2040763382== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2040763382==--