Bug#83640: web pages: CGIs broken wrt '+'
On Sat, Jan 27, 2001 at 01:44:51AM +0100, Yann Dirson wrote:
> severity 72282 important
Bah. I've been meaning to reduce this to normal. It affects so
few packages.
> OK, looks like involved rules are:
>
> bugs.debian.org:
>
> RewriteRule ^/([^/]+$) /cgi-bin/pkgreport.cgi?pkg=$1 [L,R]
>
> packages.debian.org:
>
> RewriteRule ^/([^/]+)$ http://cgi.debian.org/cgi-bin/search_packages.pl?keywords=$1\&searchon=names\&version=all\&release=all [L]
>
> In both cases, $1 should be encoded while rewriting. Maybe it should even
> be decoded first (which seems to be already done), so that bugs.d.o/g%2B%2B
> gives the expected pkg=g%2B%2B
>
Yes, it appears that something is decoding the url. And yes, $1 should be encoded.
> A solution, after reading doc/apache/manual/misc/rewriteguide.html, is given
> by the last example - using RewriteMap.
>
This is the same conclusion I reached. After looking at the poor documentation
on RewriteMap, I didn't pursue fixing it and no one else has cared enough to
look at it. Care to try?
--
James (Jay) Treacy
treacy@debian.org
Reply to: