G
Gunnar Hjalmarsson
It has happened recently (twice) that invoking CGI::ContactForm at my
web site has resulted in endless loops, which have made the web server
error log grow to about 700 Mb in a couple of seconds, thus consuming
the remaining space of my VPS.
This is what was written repeatedly to the error log: "Use of
uninitialized value in concatenation (.) or string at
/usr/lib/perl5/site_perl/5.8.1/CGI/ContactForm.pm line 600."
Line 600 of ContactForm.pm consists of:
push @output, "$1 ";
and to see it in context, a URL to the CVS repository:
http://gunnar.cc/cgi-bin/cvsweb.cgi/contactform/lib/CGI/ContactForm.pm?annotate=1.45;cvsroot=gunnar
The code in question is the reformat() subroutine, which was copied from
the module Text::Format. It's used to format the body nicely before
sending a message.
I have failed to figure out what kind of data that might cause
reformat() to go into those endless loops. Therefore, any idea of what
the problem is would be much appreciated.
web site has resulted in endless loops, which have made the web server
error log grow to about 700 Mb in a couple of seconds, thus consuming
the remaining space of my VPS.
This is what was written repeatedly to the error log: "Use of
uninitialized value in concatenation (.) or string at
/usr/lib/perl5/site_perl/5.8.1/CGI/ContactForm.pm line 600."
Line 600 of ContactForm.pm consists of:
push @output, "$1 ";
and to see it in context, a URL to the CVS repository:
http://gunnar.cc/cgi-bin/cvsweb.cgi/contactform/lib/CGI/ContactForm.pm?annotate=1.45;cvsroot=gunnar
The code in question is the reformat() subroutine, which was copied from
the module Text::Format. It's used to format the body nicely before
sending a message.
I have failed to figure out what kind of data that might cause
reformat() to go into those endless loops. Therefore, any idea of what
the problem is would be much appreciated.