com web/bugs: we won't save the bug pw into cookie anymore, so we have to refill the pw input field to keep the reporter logged in: www/bug.php
| From: | Ferenc Kovacs | Date: | Tue, 08 May 2012 22:53:00 +0000 |
| Subject: | com web/bugs: we won't save the bug pw into cookie anymore, so we have to refill the pw input field to keep the reporter logged in: www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13494@lists.php.net to get a copy of this message | ||
Commit: c3cd0abeddbe527fa56b76dc3fa4b13325ab2d74
Author: Ferenc Kovacs <tyra3l@gmail.com> Wed, 9 May 2012 00:53:00 +0200
Parents: 8c1b266b72d840381f67c0b9152ed53e5bb869a6
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=c3cd0abeddbe527fa56b76dc3fa4b13325ab2d74
Log:
we won't save the bug pw into cookie anymore, so we have to refill the pw input field to keep
the reporter logged in
Changed paths:
M www/bug.php
Diff:
diff --git a/www/bug.php b/www/bug.php
index 238508a..beb2fce 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -751,13 +751,19 @@ if ($edit == 1 || $edit == 2) { ?>
<form id="update" action="bug.php?id=<?php echo $bug_id;
?>&edit=<?php echo $edit; ?>" method="post">
<?php if ($edit == 2) {
- if (!isset($_POST['in']) && $pw &&
verify_bug_passwd($bug['id'], bugs_get_hash($pw))) {
+ if ($pw && verify_bug_passwd($bug['id'], bugs_get_hash($pw))) {
$show_bug_info = true; ?>
- <div class="explain">
- Welcome back! Since you opted to store your bug's password in a
- cookie, you can just go ahead and add more information to this
- bug or edit the other fields.
- </div>
+ <div class="explain">
+ <table>
+ <tr>
+ <td class="details">Passw<span
class="accesskey">o</span>rd:</td>
+ <td><input type="password"
name="pw" value="<?php echo htmlspecialchars($pw); ?>" size="10"
maxlength="20" accesskey="o" /></td>
+ <?php if (!$show_bug_info) { ?>
+ <input type="submit"
value="Submit" />
+ <?php } ?>
+ </tr>
+ </table>
+ </div>
<?php } else { ?>
<div class="explain">
<?php if (!isset($_POST['in'])) { ?>