[oe] [website] Problem with filebrowser and "+" sign

Ben Stewart oe at tucuxi.org
Tue Jan 30 03:24:30 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeremy,

Jeremy Lainé wrote:
> It looks as though there is a problem with the web interface to the
> MTN repository, I am unable to browse the following directory:

It appears that whereever you got the link to the gtk+ package did not
correctly escape the + as required by the HTTP specification, and the
file browser does not support the character even if encoded.

A note to the developer of the file browser - it appears the OE.org
filebrowser uses PHP (from the response headers), and the appropriate
encoding can be accomplished by using the function urlencode(), and the
output thereof should be encoded with htmlentities() before being dumped
to the browser.

Additionally, decoding the PATH_INFO to determine which directory to
show in the file browser can be accomplished by using urldecode(). Feel
free to drop me an email if there are any queries.

The 'proper' address for the directory in question would be as follows,
as the + character in the URL denotes a space (character 0x20)

http://www.openembedded.org/filebrowser/org.openembedded.dev/packages/gtk%2b

Regards

Ben Stewart
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFvrptUXHDLmlSHegRAvrgAJ9TlwznnzOyGme8jnmmLZqJacvq5gCdEm8u
Sbf1e/K65eh5i+EVzcXBnMg=
=Smhk
-----END PGP SIGNATURE-----




More information about the Openembedded-devel mailing list