From: tara%tequilarista.org <> Date: Sat, 29 Apr 2000 01:51:11 +0000 (+0000) Subject: Fix for bug #1105--no more annoying blank quips X-Git-Tag: bugzilla-2.12~304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88240ae8797cf781bee31c592e45509b16731a73;p=thirdparty%2Fbugzilla.git Fix for bug #1105--no more annoying blank quips --- diff --git a/new_comment.cgi b/new_comment.cgi index e561292eac..e034f3587d 100755 --- a/new_comment.cgi +++ b/new_comment.cgi @@ -29,11 +29,21 @@ foreach $pair (@pairs) ($name, $value) = split(/=/, $pair); $value =~ tr/+/ /; + $value =~ s/^(\s*)//s; + $value =~ s/(\s*)$//s; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $FORM{$name} = $value; } -open(COMMENTS, ">>data/comments"); $c=$FORM{"comment"}; +if ( (!defined $c) || ($c eq '') ) { + print "Content-type: text/html\n\n"; + print "