-Original Message-
From: Ken Williams [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 6:24 PM
To: Geoffrey Young; 'Perrin Harkins '
Cc: '[EMAIL PROTECTED] '
Subject: RE: CGI.pm params not being cleared?
Hi all,
It doesn't much matter whether you're using stacked
?
Alex
--
Alex Harper
Configuration Management
[EMAIL PROTECTED]
Use whatever you think of first -- Larry Wall
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 11:43 PM
To: Alex Harper
Cc: [EMAIL PROTECTED]
Subject: Re: CGI.pm params
: Daniel; [EMAIL PROTECTED]
Sent: 10/1/01 11:35 PM
Subject: Re: CGI.pm params not being cleared?
Alex Harper wrote:
Aha! That's where the problem lies. I had recently added:
PerlCleanupHandler +Apache::Sizelimit
to my httpd.conf. I placed it there so the sizelimit would be enforced
It doesn't much matter whether you're using stacked handlers or not, or
pushing vs. replacing, because the $r-child_terminate method seems to
simply call the C exit(0) function under certain conditions (Win32, old
version of apache, anything else?). Not much chance of any further action
if
I'm sure this is a FAQ somewhere, but I'm not finding it...
In our switch to mod_perl we're seeing two problems with CGI.pm (version
2.752). I'm uncertain if they are related or not.
1. Across multiple requests to a single script, the params are not
cleared. The first params sent to that script
On Mon, 1 Oct 2001, Alex Harper wrote:
Date: Mon, 1 Oct 2001 16:16:34 -0500
From: Alex Harper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: CGI.pm params not being cleared?
I'm sure this is a FAQ somewhere, but I'm not finding it...
In our switch to mod_perl we're seeing two problems
think of first -- Larry Wall
-Original Message-
From: Ken Y. Clark [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 01, 2001 4:25 PM
To: Alex Harper
Cc: [EMAIL PROTECTED]
Subject: Re: CGI.pm params not being cleared?
On Mon, 1 Oct 2001, Alex Harper wrote:
Date: Mon, 1 Oct
Make sure you're not doing:
use CGI;
my $cgi = new CGI;
if ($cgi-param(dataaction) eq whatever) {
do_whatever_without_passing_cgi();
}
elsif ($cgi-param(dataaction) eq passcgi) {
pass_it_cgi($cgi);
}
sub do_whatever_without_passing_cgi {
#using original copy of
Thanks, I looked and we're not. Here's the simplest case:
use CGI;
my $cgi = new CGI;
my @params = $cgi-Vars();
print $cgi-header(-type = 'text/html');
print $cgi-start_html();
print Process: $$BR\n;
print Query String:BR\n;
print $ENV{QUERY_STRING} . BR\n;
print Params:BR\n;
print
Odd, checking into my version CGI.pm (which I dont use), it cleans up
it's own globals by installing a cleanup handler:
Apache-request-register_cleanup(\CGI::_reset_globals);
so either your version of CGI.pm is broken or your mod_perl was somehow
compiled without PERL_CLEANUP.
Alex Harper
, October 01, 2001 6:35 PM
To: Alex Harper; [EMAIL PROTECTED]
Subject: Re: CGI.pm params not being cleared?
Odd, checking into my version CGI.pm (which I dont use), it cleans up
it's own globals by installing a cleanup handler:
Apache-request-register_cleanup(\CGI::_reset_globals);
so
Alex Harper wrote:
Aha! That's where the problem lies. I had recently added:
PerlCleanupHandler +Apache::Sizelimit
to my httpd.conf. I placed it there so the sizelimit would be enforced
post-request. Removing the line fixed my problem.
Whoa! This could be bad. Apache::SizeLimit
-Original Message-
From: Perrin Harkins
To: Alex Harper
Cc: Daniel; [EMAIL PROTECTED]
Sent: 10/1/01 11:35 PM
Subject: Re: CGI.pm params not being cleared?
Alex Harper wrote:
Aha! That's where the problem lies. I had recently added:
PerlCleanupHandler +Apache::Sizelimit
Did you compile mod_perl with PERL_STACKED_HANDLERS?
Perrin Harkins wrote:
Alex Harper wrote:
Aha! That's where the problem lies. I had recently added:
PerlCleanupHandler +Apache::Sizelimit
to my httpd.conf. I placed it there so the sizelimit would be enforced
post-request. Removing
, October 1, 2001 7:42 PM
To: Perrin Harkins
Cc: Alex Harper; [EMAIL PROTECTED]
Subject: Re: CGI.pm params not being cleared?
Did you compile mod_perl with PERL_STACKED_HANDLERS?
Perrin Harkins wrote:
Alex Harper wrote:
Aha! That's where the problem lies. I had recently added
Alex Harper wrote:
I'm using a mod_perl 1.26 RPM I built using the RedHat RPM prep files
and dropping in the 1.26 code. I believe it is built EVERYTHING=1.
Apache::Status indicates all hooks are enabled, including:
PerlStackedHandlers Enabled
Okay. Would you mind putting some
16 matches
Mail list logo