cvs: php-bugs-web / report.php /include functions.inc
| From: | Philip Olson | Date: | Thu, 12 Feb 2009 22:26:29 +0000 |
| Subject: | cvs: php-bugs-web / report.php /include functions.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-3822@lists.php.net to get a copy of this message | ||
philip Thu Feb 12 22:26:29 2009 UTC
Modified files:
/php-bugs-web report.php
/php-bugs-web/include functions.inc
Log:
Do not require a bug password for logged in CVS users
http://cvs.php.net/viewvc.cgi/php-bugs-web/report.php?r1=1.75&r2=1.76&diff_format=u
Index: php-bugs-web/report.php
diff -u php-bugs-web/report.php:1.75 php-bugs-web/report.php:1.76
--- php-bugs-web/report.php:1.75 Thu Feb 12 22:19:32 2009
+++ php-bugs-web/report.php Thu Feb 12 22:26:29 2009
@@ -286,7 +286,11 @@
<td colspan="2">
<input type="text" size="40" maxlength="79"
name="in[sdesc]" value="<?php echo clean($in['sdesc']);?>" />
</td></tr>
- </tr><tr>
+ </tr>
+ <?php
+ if (!is_cvs_user()) {
+ ?>
+ <tr>
<th align="right">Password:</th>
<td>
<input type="password" size="20" maxlength="20"
name="in[passwd]" value="<?php echo clean($in['passwd']);?>"
/>
@@ -297,6 +301,9 @@
at a later date. [<a href="/bug-pwd-finder.php">Lost a bug password?</a>]
</font></td>
</tr>
+ <?php
+ }
+ ?>
<tr>
<?php
if (is_cvs_user()) {
http://cvs.php.net/viewvc.cgi/php-bugs-web/include/functions.inc?r1=1.257&r2=1.258&diff_format=u
Index: php-bugs-web/include/functions.inc
diff -u php-bugs-web/include/functions.inc:1.257 php-bugs-web/include/functions.inc:1.258
--- php-bugs-web/include/functions.inc:1.257 Thu Feb 12 22:11:38 2009
+++ php-bugs-web/include/functions.inc Thu Feb 12 22:26:29 2009
@@ -511,7 +511,7 @@
$errors[] = "You must supply a long description of the bug you are reporting.";
}
- if ($initial && empty($in['passwd'])) {
+ if ($initial && !is_cvs_user() && empty($in['passwd'])) {
$errors[] = "You must supply a password for this bug report.";
}