Skip to contentSkip to conversation

Problem with filebrowser and "+" sign

website Ben Stewart 1 participant 1 message Jan 30, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

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

Jeremy,

Quoted 2 lines · Jeremy Lainé

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-----