[Bps-public-commit] RT-BugTracker-Public branch, master, updated. f91738fb4715428baabb44f3eeb41bcbc5ab7485

Thomas Sibley trs at bestpractical.com
Wed Aug 11 16:54:46 EDT 2010


The branch, master has been updated
       via  f91738fb4715428baabb44f3eeb41bcbc5ab7485 (commit)
      from  7e6eb4be7284e26acd5fa03d16045c6631eb4fc4 (commit)

Summary of changes:
 .../Ticket/Elements/ShowMessageHeaders/Default     |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

- Log -----------------------------------------------------------------
commit f91738fb4715428baabb44f3eeb41bcbc5ab7485
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed Aug 11 16:56:49 2010 -0400

    Only protect email addresses from the public user

diff --git a/html/Callbacks/BugTracker-Public/Ticket/Elements/ShowMessageHeaders/Default b/html/Callbacks/BugTracker-Public/Ticket/Elements/ShowMessageHeaders/Default
index 96f5e9a..095a798 100644
--- a/html/Callbacks/BugTracker-Public/Ticket/Elements/ShowMessageHeaders/Default
+++ b/html/Callbacks/BugTracker-Public/Ticket/Elements/ShowMessageHeaders/Default
@@ -2,6 +2,8 @@
 $headers
 </%args>
 <%init>
+return unless RT::BugTracker::Public->IsPublicUser;
+
 # Protect email addresses
 for my $h (@$headers) {
     next unless $h->{'Tag'} =~ /^(?:From|To|Cc|Bcc|Reply-To)$/i;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list