From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <512C8783.1020105@pengutronix.de> Date: Tue, 26 Feb 2013 10:59:31 +0100 From: Marc Kleine-Budde MIME-Version: 1.0 References: In-Reply-To: Subject: Re: [ptxdist] Proper quoting of semicolons in URLs Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1630757070==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Dennis.Herbrich@hytera.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============1630757070== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2QVLOPCWDSEXOVCUTSJSH" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2QVLOPCWDSEXOVCUTSJSH Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 02/26/2013 10:20 AM, Dennis.Herbrich@hytera.de wrote: > Good day, everyone! >=20 > When using ptxdist to "get" a package with an URL with semicolons in it= ,=20 > for example a snapshot from a gitweb repo, anything after the first=20 > semicolon > is interpreted as options to wget. Unfortunately I was unable to find a= =20 > quoting > style that prevented this while still handing over a usable URL to wget= : >=20 > An example for an URL I want to use: > http://git.xilinx.com/?p=3Dlinux-xlnx.git;a=3Dsnapshot;h=3D04d937888140= 1e71f83b8b4fea0abd71d33b4052;sf=3Dtgz >=20 > I'm using ptxdist 2013.01.90 and copied the original kernel.make to my = > project > rules, with a custom KERNEL_URL. I tried these variations, and got the = > following > (slightly cleaned) results: >=20 > "Naive": > KERNEL_URL :=3D=20 > http://git.xilinx.com/?p=3Dlinux-xlnx.git;a=3Dsnapshot;h=3D04d937888140= 1e71f83b8b4fea0abd71d33b4052;sf=3Dtgz >=20 > $ ptxdist-2013.01.90 print KERNEL_URL > http://git.xilinx.com/?p=3Dlinux-xlnx.git;a=3Dsnapshot;h=3D04d937888140= 1e71f83b8b4fea0abd71d33b4052;sf=3Dtgz > $ ptxdist-2013.01.90 get kernel > ptxdist: error: invalid option 'a=3Dsnapshot' to ptxd_make_get_http >=20 >=20 > "Doublequoting": > KERNEL_URL :=3D=20 > "http://git.xilinx.com/?p=3Dlinux-xlnx.git;a=3Dsnapshot;h=3D04d93788814= 01e71f83b8b4fea0abd71d33b4052;sf=3Dtgz" >=20 > $ ptxdist-2013.01.90 print KERNEL_URL > http://git.xilinx.com/?p=3Dlinux-xlnx.git > (This downloads an obviously unwanted HTML index page) >=20 >=20 > "Singlequoting": > KERNEL_URL :=3D=20 > 'http://git.xilinx.com/?p=3Dlinux-xlnx.git;a=3Dsnapshot;h=3D04d93788814= 01e71f83b8b4fea0abd71d33b4052;sf=3Dtgz' >=20 > $ ptxdist-2013.01.90 print KERNEL_URL > 'http://git.xilinx.com/?p=3Dlinux-xlnx.git;a=3Dsnapshot;h=3D04d93788814= 01e71f83b8b4fea0abd71d33b4052;sf=3Dtgz' > $ ptxdist-2013.01.90 get kernel > Could not download package > URL:=20 > 'http://git.xilinx.com/?p=3Dlinux-xlnx.git;a=3Dsnapshot;h=3D04d93788814= 01e71f83b8b4fea0abd71d33b4052;sf=3Dtgz' >=20 >=20 > Using backslashes to escape the semicolons does not work, either, same = > behaviour > as in "Naive". >=20 > Using urlencoding as in=20 > KERNEL_URL :=3D=20 > http://git.xilinx.com/?p=3Dlinux-xlnx.git%3Ba=3Dsnapshot%3Bh=3D04d93788= 81401e71f83b8b4fea0abd71d33b4052%3Bsf=3Dtgz > would technically work with ptxdist, but gitweb doesn't seem to decode = > this, > and throws a 404, which seems broken by itself. :( >=20 > Does anybody have a suggestion how to quote semicolons in my URL proper= ly, > lest they are passed literally to wget instead of being split into=20 > options? > Is there some $(call verbatim,FOO) macro, perchance? What about using %3B instead of ; http://www.w3schools.com/TAGS/ref_urlencode.asp Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | ------enig2QVLOPCWDSEXOVCUTSJSH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlEsh4MACgkQjTAFq1RaXHPLEQCcDJ2DxnWR6lw+xeRzFDeBcDm9 csoAn0MXtd4mTaqqK22YyL3Nrb9nfxsW =oTmw -----END PGP SIGNATURE----- ------enig2QVLOPCWDSEXOVCUTSJSH-- --===============1630757070== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1630757070==--