From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Vilata i Balaguer Subject: [PATCH] Trivial fix for "%3f" in URL bug Date: Wed, 17 Mar 2010 11:53:50 +0100 Message-ID: <20100317105350.GA2782@edgar.terramar.selidor.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2105943349==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nrqss-0003pq-RT for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 06:53:54 -0400 Received: from [140.186.70.92] (port=48488 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nrqsq-0003pi-I8 for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 06:53:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nrqsp-0001Hz-59 for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 06:53:52 -0400 Received: from lev.selidor.net ([66.246.138.156]:56369) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nrqsp-0001Hm-3B for emacs-orgmode@gnu.org; Wed, 17 Mar 2010 06:53:51 -0400 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 --===============2105943349== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NKoe5XOeduwbEQHU" Content-Disposition: inline --NKoe5XOeduwbEQHU Content-Type: multipart/mixed; boundary="VrqPEDrXMn8OVzN4" Content-Disposition: inline --VrqPEDrXMn8OVzN4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi all, Regarding the previous thread =E2=80=9C"%3f" shouldn't be unescaped in HTTP= URLs=E2=80=9D, I suggested that leaving the '?' or '%3f' characters in a URL as provided by = the user might be the best thing to do, since they mean different things (query separator and literal question mark, respectively) and the user should know best (especially if the URL was copied from a browser). Fixing the old behaviour is trivial: just remove the ``(?? . "%3F")`` entry =66rom the ``org-link-escape-chars`` list in ``org.el``. Cheers, :: Ivan Vilata i Balaguer -- http://ivan.lovesgazpacho.net/ --VrqPEDrXMn8OVzN4 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="org.el.patch" --- org.el.orig 2010-03-17 11:51:04.000000000 +0100 +++ org.el 2010-03-17 11:51:42.000000000 +0100 @@ -7877,7 +7877,6 @@ (?\371 . "%F9") ; `u (?\373 . "%FB") ; ^u (?\; . "%3B") - (?? . "%3F") (?= . "%3D") (?+ . "%2B") ) --VrqPEDrXMn8OVzN4-- --NKoe5XOeduwbEQHU 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) iJwEAQECAAYFAkugtLsACgkQpE7JSd+luc79qwQAn4kYNhVBhbGPc4hGv7sqneSG 6Zaj+L4aezckcCe3n0v70F/RCsgzxcyP2H7wY/0OQxJfq3Ipr/XRsGD+STGbNF1k VnusD8sdmUQoZoUta3ooSu8sA3ojGuL0mARukfJz3lqd5OgjLbs0OYgReeT5yql1 eRzvjaxM/ck1wLLCYHI= =Mj/y -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU-- --===============2105943349== 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 --===============2105943349==--