svn: /web/php-bugs/trunk/www/ bug.php
| From: | Felipe Pena | Date: | Sun, 25 Jul 2010 17:02:57 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/ bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-8587@lists.php.net to get a copy of this message | ||
felipe Sun, 25 Jul 2010 17:02:57 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=301537
Log:
- Added missing submit checking
Changed paths:
U web/php-bugs/trunk/www/bug.php
Modified: web/php-bugs/trunk/www/bug.php
===================================================================
--- web/php-bugs/trunk/www/bug.php 2010-07-25 16:57:16 UTC (rev 301536)
+++ web/php-bugs/trunk/www/bug.php 2010-07-25 17:02:57 UTC (rev 301537)
@@ -139,7 +139,7 @@
}
/* Bugs marked as Cancelled just can be commented by the team */
-if ($bug['status'] == 'Cancelled' && !($is_trusted_developer ||
(isset($logged_in) && $logged_in == 'developer' && $edit == 1))) {
+if (isset($_POST['ncomment']) && $bug['status'] ==
'Cancelled' && !($is_trusted_developer || (isset($logged_in) && $logged_in
== 'developer' && $edit == 1))) {
response_header('Add comment not allowed');
display_bug_error("You're not allowed to add coment on bug #{$bug_id}");
response_footer();