Matt Sergeant wrote:
> 
> On Thu, 5 Oct 2000, John Reid wrote:
> 
> > Hi guys
> >
> > Has anyone any experience of passing a 0 as a parameter value through
> > Apache::Request. I am passing a QUERY_STRING like
> > ?param1=value1&param2=0&param3=value3. It appears that the 0 is being
> > interpretted as an empty string. Is this a bug/expected behaviour or am
> > I looking in completely the wrong area for the source of the problem?
> 
> No its a bug. It also occurs if the QUERY_STRING is just 0 on its own.
> 
> --
> <Matt/>
> 
> ** Director and CTO **
> **  AxKit.com Ltd   **  ** XML Application Serving **
> ** http://axkit.org **  ** XSLT, XPathScript, XSP  **
> **     Personal Web Site: http://sergeant.org/     **

In my limited experience, it is Perl in general that treats the value 0,
in a query string as the empty string.  In all of the scripts I have
written, if 0 is possible as a param value, I have to explicity check
for 0.  

In essence I agree with Matt, but wanted to pop that little piece of
information in there in case it turns out to be pertinent...

--Dana

Reply via email to