diff --git a/post_bug.cgi b/post_bug.cgi index 7bc75ddc16a289097fcb0e3ea6ff80568e690260..90ca32f529c391299e473d76fb7e329afb125c15 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -198,6 +198,9 @@ my $comment = $::FORM{'comment'}; $comment =~ s/\r\n/\n/g; # Get rid of windows-style line endings. $comment =~ s/\r/\n/g; # Get rid of mac-style line endings. $comment = trim($comment); +# If comment is all whitespace, it'll be null at this point. That's +# OK except for the fact that it causes e-mail to be suppressed. +$comment = $comment ? $comment : " "; $query .= "now(), 0";