Re: CGI::Simple 0.077

2005-03-16 Thread Joshua N Pritikin
On Wed, 2005-03-16 at 17:51 +0530, Joshua N Pritikin wrote: > Now I'm getting a different error: > >'.cgi_error' => '500 Bad read on multipart/form-data! wanted 880, got > 0', Ah, I see. Careful examination of CGI.pm suggests that STDIN no longer

Re: CGI::Simple 0.077

2005-03-16 Thread Joshua N Pritikin
On Wed, 2005-03-16 at 11:24 +0530, Joshua N Pritikin wrote: > I'm trying to get parameters from multipart/form-data. D'oh! I was passing the request object into CGI::Simple. CGI::Simple->new($r); I guess I should pass in nothing, e.g.: CGI::Simple->new(); Now I&#x

Re: CGI::Simple 0.077

2005-03-15 Thread Joshua N Pritikin
On Tue, 2005-03-15 at 23:21 -0500, Perrin Harkins wrote: > On Wed, 2005-03-16 at 08:47 +0530, Joshua N Pritikin wrote: > > CGI::Simple doesn't work with mod_perl 1.999.20: > > > > $data = $self->{'.mod_perl'} ? Apache->request->args

CGI::Simple 0.077

2005-03-15 Thread Joshua N Pritikin
CGI::Simple doesn't work with mod_perl 1.999.20: $data = $self->{'.mod_perl'} ? Apache->request->args : $ENV{'QUERY_STRING'} || $ENV{'REDIRECT_QUERY_STRING'} || ''; Apache->request->args returns an Apache::RequestRec instead of a native perl data structure. What is the new magic to ge

newbie orientation

2003-11-08 Thread Joshua N Pritikin
First there was "use CGI". Now there are lots of modules which provide a similar service, for example CGI::Simple. What is the modern best solution for parsing form data, etc? libapreq? -- A new cognitive theory of emotion, http://savannah.nongnu.org/projects/aleader -- Reporting bugs: http:/

Re: how to turn on taint checking

2003-11-07 Thread Joshua N Pritikin
On Fri, Nov 07, 2003 at 10:18:45PM -0500, Geoffrey Young wrote: > >> PerlSwitches -T > > > >That's the right way. > > I'm not entirely sure, but IIRC, if you run a section or > PerlLoadModule before PerlSwitches its too late to specify taint mode. I > might be wrong, but it's worth checking.

how to turn on taint checking

2003-11-07 Thread Joshua N Pritikin
Hi! My setup is really simple, and because of this, I can't figure out what is going wrong. I am running: Apache/2.0.47 (Debian GNU/Linux) mod_perl/1.99_10 Perl/v5.8.1 My apache2.conf contains: PerlSwitches -T SetHandler perl-script PerlResponseHandler OHL::CGI My CGI script