svn: /web/php-bugs/trunk/www/ bug.php
| From: | Felipe Pena | Date: | Mon, 15 Nov 2010 23:06:58 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/ bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-9433@lists.php.net to get a copy of this message | ||
felipe Mon, 15 Nov 2010 23:06:58 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=305386
Log:
- Added error message to when trying to mark a non Security related bug as private
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-11-15 22:36:37 UTC (rev 305385)
+++ web/php-bugs/trunk/www/bug.php 2010-11-15 23:06:58 UTC (rev 305386)
@@ -376,6 +376,12 @@
if ($ncomment && is_spam($ncomment)) {
$errors[] = "Please do not SPAM our bug system.";
}
+
+ if ($bug['private'] == 'N' && $bug['private'] !=
$_POST['in']['private']) {
+ if ($_POST['in']['package_name'] != 'Security related') {
+ $errors[] = 'Only Security related bugs can be private.';
+ }
+ }
// Require comment for open bugs only
if ($_POST['in']['status'] == 'Bogus' &&
@@ -816,7 +822,7 @@
<tr>
<th class="details"></th>
<td colspan="3">
- <input type="checkbox" name="in[private]" value="N" <?php
print $is_private == 'Y' ? 'checked="checked"' : ''; ?>
/> Private report (Normal user should not see it)
+ <input type="checkbox" name="in[private]" value="Y" <?php
print $is_private == 'Y' ? 'checked="checked"' : ''; ?>
/> Private report (Normal user should not see it)
</td>
</tr>
<?php } ?>