David Wheeler wrote:
--- lib/Apache/SizeLimit.pm.old 2006-07-31 14:11:48.000000000 -0700
+++ lib/Apache/SizeLimit.pm     2006-07-31 14:12:11.000000000 -0700
@@ -92,7 +92,7 @@
     # PerlCleanupHandler phase. That means that there's no way to use
     # $r->get_handlers() to check the results of calling this method.
     $r->push_handlers( 'PerlCleanupHandler',
-                       sub { $class->_exit_if_too_big() } );
+                       sub { $class->_exit_if_too_big(shift) } );
     $r->pnotes( size_limit_cleanup => 1 );
}
sub add_cleanup_handler {
    my $class = shift;
    my $r = shift || Apache->request;

Wny not just pass the $r that we have ?
(I agree with the spirit of the patch)

I'll commit a tweaked version tomorrowish unless someone screams.

--
------------------------------------------------------------------------
Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Software Engineer - TicketMaster - http://ticketmaster.com
1024D/A79997FA F357 0FDD 2301 6296 690F  6A47 D55A 7172 A799 97F

"It takes a minute to have a crush on someone, an hour to like someone,
and a day to love someone, but it takes a lifetime to forget someone..."

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to