in reply to Security with a MEMO field

Check the text for size. If it's over a certain limit, automatically reject the submission.

Remove all carriage returns:

$text =~ tr/\r//d;
Remove leading and trailing white space:
$text =~ s/^ +| +$//gm;
Remove any extra line breaks:
$text =~ s/^\n+|\n+$//g; $text =~ s/\n{3,}/\n\n/g;
Then submit using placeholders to take care of potential security breaches.