From: Jonathan S. <gel...@ge...> - 2002-01-21 22:00:11
|
On Mon, 21 Jan 2002, Dave Cross wrote: > ----- Forwarded message from Chris Benson <ch...@tr...> ----- > > Hi, I've got a form with checkboxes. If the user selects multiple > boxes, the message sent looks like: > > courses: ARRAY(0x823aa10) > > :-( > > The following fixes it ... I shouldn't've read the ?: thread on > London.pm this morning :-) I'm using 1.16 but the latest 1.25 also > needs it. > > Thanks for doing this: I'm getting a few dozen attempts daily at (versions of) > cgi-bin/formmail.pl and (so far today) 6 attempts to abuse it as if it > were MW's original ... > > --- FormMail.pl.orig Mon Jan 21 16:14:05 2002 > +++ FormMail.pl Mon Jan 21 16:23:39 2002 > @@ -470,7 +470,7 @@ > > foreach (@sorted_keys) { > if ($Config{'print_blank_fields'} || defined $Form{$_}) { > - print MAIL "$_: $Form{$_}\n\n"; > + print MAIL "$_: ", (ref $Form{$_} ? "@{$Form{$_}}" : $Form{$_}), > "\n\n"; > } > } > Er, 'Thanks, Applied' ;-} /J\ -- Jonathan Stowe | <http://www.gellyfish.com> | This space for rent | |