Re: Bug#421820: libapache2-mod-musicindex: Incorrect url-encoding of &-sign
tags 421820 confirmed help
thanks
On 5/1/07, M.H. ten Berge <tenbergemh@yahoo.com> wrote:
Package: libapache2-mod-musicindex
Version: 1.1.5-2
Severity: normal
File paths containing an &-sign are not URL-encoded correctly.
[...]
Example: the bar displays "http://host/Jazz%20&%20Swing/SomeAlbum/".
This should have been Jazz%20%26%20Swing.
That's a bug I've been trying to fix already in the past and thought I
had. It seems ap_escape_uri() isn't doing what I thought it would, and
digging into apache source code doesn't help me figuring out a proper
solution, hence my cc-ing of debian-apache for help.
I currently encode all hrefs by doing ap_escape_html(pool,
ap_escape_uri(pool, uri));
for some reason, ap_escape_uri seems to properly escaping everything
but '&'. Can somebody point me at a proper fix?
TIA
T-Bone
--
Thibaut VARENE
http://www.parisc-linux.org/~varenet/
Reply to: