cvs: php-bugs-web / bug.php
| From: | Felipe Pena | Date: | Thu, 23 Oct 2008 20:47:04 +0000 |
| Subject: | cvs: php-bugs-web / bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-2866@lists.php.net to get a copy of this message | ||
felipe Thu Oct 23 20:47:04 2008 UTC
Modified files:
/php-bugs-web bug.php
Log:
- Missing check for comment size (thanks Hannes!)
http://cvs.php.net/viewvc.cgi/php-bugs-web/bug.php?r1=1.91&r2=1.92&diff_format=u
Index: php-bugs-web/bug.php
diff -u php-bugs-web/bug.php:1.91 php-bugs-web/bug.php:1.92
--- php-bugs-web/bug.php:1.91 Thu Oct 23 12:02:34 2008
+++ php-bugs-web/bug.php Thu Oct 23 20:47:04 2008
@@ -179,7 +179,7 @@
if ($in['status'] == 'Bogus' && !in_array($bug['status'],
array ('Bogus', 'Closed', 'Duplicate', 'No feedback',
'Wont fix'))
&& strlen(trim($ncomment)) == 0) {
$errors[] = "You must provide a comment when marking a bug 'Bogus'";
- } elseif ($in['status'] == 'To be documented') {
+ } elseif ($in['status'] == 'To be documented' &&
strlen(trim($ncomment)) == 0) {
$errors[] = "You must provide a comment to help in the feature/issue documentation";
} elseif ($in['resolve']) {
if (!$trytoforce && $RESOLVE_REASONS[$in['resolve']]['status'] ==
$bug['status']) {