cvs: pearweb /public_html/bugs report.php
| From: | Greg Beaver | Date: | Mon, 05 Mar 2007 05:44:52 +0000 |
| Subject: | cvs: pearweb /public_html/bugs report.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-44978@lists.php.net to get a copy of this message | ||
cellog Mon Mar 5 05:44:52 2007 UTC
Modified files:
/pearweb/public_html/bugs report.php
Log:
preserve user/pass submitted if we want to test to make sure that the original bug
report is valid
http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/report.php?r1=1.70&r2=1.71&diff_format=u
Index: pearweb/public_html/bugs/report.php
diff -u pearweb/public_html/bugs/report.php:1.70 pearweb/public_html/bugs/report.php:1.71
--- pearweb/public_html/bugs/report.php:1.70 Tue Feb 27 05:46:03 2007
+++ pearweb/public_html/bugs/report.php Mon Mar 5 05:44:52 2007
@@ -17,7 +17,7 @@
* @package Bugs
* @copyright Copyright (c) 1997-2005 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License
- * @version $Id: report.php,v 1.70 2007/02/27 05:46:03 cellog Exp $
+ * @version $Id: report.php,v 1.71 2007/03/05 05:44:52 cellog Exp $
*/
/**
@@ -442,7 +442,14 @@
echo ' onsubmit="javascript:doMD5(document.forms[\'bugreport\'])"
' ;
} ?> method="post"
action="<?php echo $action ?>" name="bugreport"
id="bugreport">
-<?php if (!$auth_user): ?>
+<?php if (!$auth_user):
+ if (isset($_POST['PEAR_USER']) && isset($_POST['PEAR_PW'])
&& isset($_POST['PEAR_PW2'])):
+ ?><input type="hidden" name="PEAR_USER" value="<?php echo
htmlspecialchars($_POST['PEAR_USER']) ?>" />
+ <input type="hidden" name="PEAR_PW" value="<?php echo
htmlspecialchars($_POST['PEAR_PW']) ?>" />
+ <input type="hidden" name="PEAR_PW2" value="<?php echo
htmlspecialchars($_POST['PEAR_PW2']) ?>" />
+ <input type="hidden" name="isMD5" value="<?php echo
htmlspecialchars($_POST['isMD5']) ?>" />
+ <?php
+ else: //if (isset($_POST['PEAR_USER']) && isset($_POST['PEAR_PW'])
&& isset($_POST['PEAR_PW2'])) ?>
<div class="explain">
Please choose a username/password or <a href="<?php echo
'/login.php?redirect=' .
urlencode("{$self}?{$_SERVER['QUERY_STRING']}") ?>">Log
in</a>
@@ -460,21 +467,23 @@
<th class="form-label_left">
Use<span class="accesskey">r</span>name:</th>
<td class="form-input">
-<input size="20" name="PEAR_USER" accesskey="r" /></td>
+<input size="20" name="PEAR_USER" accesskey="r"/></td>
</tr>
<tr>
<th class="form-label_left">Password:</th>
<td class="form-input">
-<input size="20" name="PEAR_PW" type="password" /></td>
+<input size="20" name="PEAR_PW" type="password"/></td>
</tr>
<tr>
<th class="form-label_left">Confirm Password:</th>
<td class="form-input">
-<input size="20" name="PEAR_PW2" type="password" /></td>
+<input size="20" name="PEAR_PW2" type="password"/></td>
</tr>
</table>
</div>
-<?php endif; //if (!$auth_user) ?>
+<?php
+ endif; //if (isset($_POST['PEAR_USER']) && isset($_POST['PEAR_PW'])
&& isset($_POST['PEAR_PW2']))
+endif; //if (!$auth_user) ?>
<table class="form-holder" cellspacing="1">
<tr>
<th class="form-label_left">