Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 4862
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: rwinslow [...] lbl.gov
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: Form reset routine for mod_perl broken
Download (untitled) / with headers
text/plain 820b
When the .defaults parameter is encountered the current method is to undefine the cgi object. This causes mod_perl to die with an error of "Can't call method "send_cgi_header" on an undefined value at (eval 10) line 62." When the object is undefined the response handler no longer has anything to work with. How about using the sub delete_all() instead? Snippet follows. I'm not sure when this happened..... maybe around 2.99 Running on FreeBSD with Apache 1.28 and mod_perl 1.27 sub init { ............. snip ............... # Special case. Erase everything if there is a field named # .defaults. if ($self->param('.defaults')) { $self->delete_all(); # The method below is original CGI.pm and is broken. #undef %{$self}; } ........ snip ...............


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.