[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#83640: web pages: CGIs broken wrt '+'



Arg. What a pain in the ass this one was.

On Fri, Jan 26, 2001 at 03:26:29PM +0000, Yann Dirson wrote:
> * http://packages.debian.org/g++ translates to
> http://cgi.debian.org/cgi-bin/search_packages.pl?keywords=g++&searchon=names&version=all&release=all
> 
> Should read "keywords=g%2B%2B" instead of "keywords=g++"
> 
> * http://bugs.debian.org/g++ translates to
> http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=g++
> 
> Again this should be pkg=g%2B%2B
> 
It turns out that '+' are translated into ' ' when sent into cgi
scripts. I have no idea where this is documented and was only
discovered by testing. A quick look through the http spec did
not turn up anything. It's probably buried in some doc on cgi
scripts.

Anyway, I have fixed the two scripts mentioned to correct the
problem and all tests have worked.

-- 
James (Jay) Treacy
treacy@debian.org



Reply to: