com web/bugs: Hid the From: when status=spam, as reques ted by Chris Jones.: www/bug.php
| From: | Philip Olson | Date: | Wed, 12 Dec 2012 07:00:34 +0000 |
| Subject: | com web/bugs: Hid the From: when status=spam, as reques ted by Chris Jones.: www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15058@lists.php.net to get a copy of this message | ||
Commit: d63b0311be5dc790761359607934e242cc963830
Author: Philip Olson <philip@php.net> Tue, 11 Dec 2012 23:00:34 -0800
Parents: 419ec6a6ba5aaf071bff85ff13d0d3ed882a2ab1
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=d63b0311be5dc790761359607934e242cc963830
Log:
Hid the From: when status=spam, as requested by Chris Jones.
Changed paths:
M www/bug.php
Diff:
diff --git a/www/bug.php b/www/bug.php
index 314b89f..db489b0 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -639,7 +639,7 @@ if (!$show_bug_info) {
<tr id="submitter">
<th class="details">From:</th>
- <td><?php echo spam_protect(htmlspecialchars($bug['email']));
?></td>
+ <td><?php echo ($bug['status'] !== 'Spam') ?
spam_protect(htmlspecialchars($bug['email'])) : 'Hidden because of SPAM';
?></td>
<th class="details">Assigned:</th>
<?php if (!empty($bug['assign'])) { ?>
<td><a href="search.php?cmd=display&assign=<?php echo
urlencode($bug['assign']), '">',
htmlspecialchars($bug['assign']); ?></a></td>
@@ -902,7 +902,7 @@ if ($edit == 1 || $edit == 2) { ?>
<tr>
<th class="details">From:</th>
<td colspan="3">
- <?php echo spam_protect(field('email')); ?>
+ <?php echo ($bug['status'] !== 'Spam') ?
spam_protect(field('email')) : 'Hidden because of SPAM'; ?>
</td>
</tr>
<tr>