aboutsummaryrefslogtreecommitdiffstats
path: root/post_bug.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2001-04-10 02:10:43 +0000
committerjustdave%syndicomm.com <>2001-04-10 02:10:43 +0000
commita81cdca049f59c1dd145fed793e944126e4b91c1 (patch)
treeb31d5722f99a7f927d6935fb7e48f8bc6d2f12c2 /post_bug.cgi
parent9725c3af95cefb7596e3eee17571b211ae8497f8 (diff)
downloadbugs-a81cdca049f59c1dd145fed793e944126e4b91c1.tar
bugs-a81cdca049f59c1dd145fed793e944126e4b91c1.tar.gz
bugs-a81cdca049f59c1dd145fed793e944126e4b91c1.tar.bz2
bugs-a81cdca049f59c1dd145fed793e944126e4b91c1.tar.xz
bugs-a81cdca049f59c1dd145fed793e944126e4b91c1.zip
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 <jake@acutex.net> r= justdave
Diffstat (limited to 'post_bug.cgi')
-rwxr-xr-xpost_bug.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/post_bug.cgi b/post_bug.cgi
index 7bc75ddc1..90ca32f52 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";