Commit:    d63b0311be5dc790761359607934e242cc963830
Author:    Philip Olson <[email protected]>         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&amp;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>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to