From: justdave%syndicomm.com <> Date: Tue, 10 Apr 2001 02:10:43 +0000 (+0000) Subject: Fix for bug 71659: New bugs weren't creating email if the reported didn't give a... X-Git-Tag: bugzilla-2.12~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a81cdca049f59c1dd145fed793e944126e4b91c1;p=thirdparty%2Fbugzilla.git Fix for bug 71659: New bugs weren't creating email if the reported didn't give a long description, and the first person who added a comment had their comment become the long description of the bug. Patch by r= justdave --- diff --git a/post_bug.cgi b/post_bug.cgi index 7bc75ddc16..90ca32f529 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";