On Thu, 5 Oct 2000, Geoffrey Young wrote:
> however, just for clarity, I don't see how this is a bug in Apache::Request
> (as you originally pointed out)...
>
> #!/usr/bin/perl
> use Apache::Request;
> my $r = Apache::Request->new(shift);
> my $value = $r->param('foo');
>
> $r->send_http_header('text/plain');
> print "foo: $value\n";
> print "foo is undefined" unless defined $value;
>
> /perl-bin/foo.pl?foo=0 produces:
> foo: 0
>
> which doesn't look like a bug to me.
You're right... I was remembering something else:
package FooTest;
use Apache::Constants;
use Apache::Reload;
sub handler {
my $r = shift;
$r->send_http_header;
print "Args: ", scalar $r->args, "\n";
return OK;
}
1;
Now send a request with the querystring 0 to that handler. I get:
Args:
No zero. $ENV{QUERY_STRING} contains the zero though.
--
<Matt/>
** Director and CTO **
** AxKit.com Ltd ** ** XML Application Serving **
** http://axkit.org ** ** XSLT, XPathScript, XSP **
** Personal Web Site: http://sergeant.org/ **