diff options
author | Byron Jones <glob@mozilla.com> | 2014-04-23 06:41:13 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-04-23 06:41:13 +0200 |
commit | c9b8c719449de0be70e1a9fc492ce0e42a58ae65 (patch) | |
tree | 852f696397bb56d60c634f28c7e46928d92968a0 /extensions/UserProfile/template | |
parent | cdb655a615e05df22c9f2f5370f9ef47d96254a5 (diff) | |
download | bugzilla-c9b8c719449de0be70e1a9fc492ce0e42a58ae65.tar.gz bugzilla-c9b8c719449de0be70e1a9fc492ce0e42a58ae65.tar.xz |
Bug 999734: User email addresses are publicly visible in profile titles
Diffstat (limited to 'extensions/UserProfile/template')
-rw-r--r-- | extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl b/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl index fa6cc56b3..dc5696c88 100644 --- a/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl +++ b/extensions/UserProfile/template/en/default/pages/user_profile.html.tmpl @@ -8,7 +8,11 @@ [% PROCESS global/variables.none.tmpl %] -[% filtered_identity = target.identity FILTER html %] +[% IF user.id %] + [% filtered_identity = target.identity FILTER html %] +[% ELSE %] + [% filtered_identity = target.name || target.address.user FILTER html %] +[% END %] [% PROCESS global/header.html.tmpl title = "User Profile: $filtered_identity" style_urls = [ "extensions/UserProfile/web/styles/user_profile.css" ] @@ -54,7 +58,7 @@ </td> <th>Name</th> <td colspan="2"> - [% target.name FILTER html %] + [% target.name || target.address.user FILTER html %] [% IF target.id == user.id %] <span style="font-size: x-small;">(<a href="userprefs.cgi?tab=account">change</a>)</span> [% END %] |