From 6c0f16ffbf7b39da24ded73e17fd2fc0ea4e1a75 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 22 Sep 2006 06:19:03 +0000 Subject: Bug 351994: Messages shouldn't contain HTML characters unless we're in USAGE_MODE_BROWSER Patch By Max Kanat-Alexander r=ghendricks, a=myk --- template/en/default/global/user-error.html.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'template/en/default/global/user-error.html.tmpl') diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index a9706376b..646da5f75 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -1483,7 +1483,11 @@ [%# We only want HTML error messages for ERROR_MODE_WEBPAGE %] [% USE Bugzilla %] [% IF Bugzilla.error_mode != constants.ERROR_MODE_WEBPAGE %] - [% error_message FILTER none %] + [% IF Bugzilla.usage_mode == constants.USAGE_MODE_BROWSER %] + [% error_message FILTER none %] + [% ELSE %] + [% error_message FILTER txt %] + [% END %] [% RETURN %] [% END %] -- cgit v1.2.3-24-g4f1b