Re: Bug#421820: libapache2-mod-musicindex: Incorrect url-encoding of &-sign
tags 421820 confirmed help
On 5/1/07, M.H. ten Berge <firstname.lastname@example.org> wrote:
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,
for some reason, ap_escape_uri seems to properly escaping everything
but '&'. Can somebody point me at a proper fix?