From feeccb6a9e435932346d6a9ddeeb12c969362177 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 26 Sep 2013 11:06:28 -0400 Subject: Bug 917669 - invalid or expired authentication tokens and cookies should throw errors, not be silently ignored r/a=glob --- Bugzilla/Template.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 4b227e9d2..e1f7f3b60 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -837,10 +837,7 @@ sub create { # (Wrapping the message in the WebService is unnecessary # and causes awkward things like \n's appearing in error # messages in JSON-RPC.) - unless (Bugzilla->usage_mode == USAGE_MODE_JSON - or Bugzilla->usage_mode == USAGE_MODE_XMLRPC - or Bugzilla->usage_mode == USAGE_MODE_REST) - { + unless (i_am_webservice()) { $var = wrap_comment($var, 72); } $var =~ s/\ / /g; -- cgit v1.2.3-24-g4f1b