From 1be649b1ca0c761cea6300a1efa56e3dc7962d8a Mon Sep 17 00:00:00 2001 From: "zach%zachlipton.com" Date: Tue, 15 Nov 2005 23:46:48 +0000 Subject: [PATCH] Ensure that email addresses display correctly. The html filter must be applied before the email filter, not after. git-svn-id: svn://10.0.0.236/trunk@184731 18797224-902f-48f8-a5cc-f745e15eee43 --- .../templates/en/default/reporting/result_display.tmpl | 8 ++++---- .../templates/en/default/reporting/test_results.tmpl | 4 ++-- .../litmus/templates/en/default/sidebar/widget_login.tmpl | 2 +- .../litmus/templates/en/default/stats/stats.html.tmpl | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/mozilla/webtools/litmus/templates/en/default/reporting/result_display.tmpl b/mozilla/webtools/litmus/templates/en/default/reporting/result_display.tmpl index 4d6245a0973..858c73dfb60 100644 --- a/mozilla/webtools/litmus/templates/en/default/reporting/result_display.tmpl +++ b/mozilla/webtools/litmus/templates/en/default/reporting/result_display.tmpl @@ -20,8 +20,8 @@ Summary Information Submitted by:[% IF result.user.email != "" %] - - [% result.user.email FILTER email | html%] + + [% result.user.email FILTER html | email %] [% ELSE %] Not provided [% END %] @@ -131,8 +131,8 @@ You must log in before you can leave comments.

------- Comment #[% comment_num | html %] From [% IF comment.user.email %] - - [% comment.user.email FILTER email | html %] + + [% comment.user.email FILTER html | email %] [% ELSE %] Anonymous [% END %] diff --git a/mozilla/webtools/litmus/templates/en/default/reporting/test_results.tmpl b/mozilla/webtools/litmus/templates/en/default/reporting/test_results.tmpl index c7849e008cd..03eac4410c0 100644 --- a/mozilla/webtools/litmus/templates/en/default/reporting/test_results.tmpl +++ b/mozilla/webtools/litmus/templates/en/default/reporting/test_results.tmpl @@ -11,8 +11,8 @@ [% IF loop.count>1 %]


[% END %]

[% IF comment.user.email %] - - [% comment.user.email FILTER email | js | html %] + + [% comment.user.email FILTER html | js | email %] [% ELSE %] Anonymous[% END %]
[% comment.submission_time.strftime("%Y-%m-%d %T %Z") %]
diff --git a/mozilla/webtools/litmus/templates/en/default/sidebar/widget_login.tmpl b/mozilla/webtools/litmus/templates/en/default/sidebar/widget_login.tmpl index a9c27190686..34c918cf4ce 100644 --- a/mozilla/webtools/litmus/templates/en/default/sidebar/widget_login.tmpl +++ b/mozilla/webtools/litmus/templates/en/default/sidebar/widget_login.tmpl @@ -2,7 +2,7 @@

Welcome!

-