diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-09-26 17:06:28 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-09-26 17:06:28 +0200 |
commit | feeccb6a9e435932346d6a9ddeeb12c969362177 (patch) | |
tree | a60fa68c9ca2ca8148de72764e2ac74d65a7cc72 /Bugzilla/Template.pm | |
parent | 186374529e05a18e216ee96675d80488289c9c42 (diff) | |
download | bugzilla-feeccb6a9e435932346d6a9ddeeb12c969362177.tar.gz bugzilla-feeccb6a9e435932346d6a9ddeeb12c969362177.tar.xz |
Bug 917669 - invalid or expired authentication tokens and cookies should throw errors, not be silently ignored
r/a=glob
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r-- | Bugzilla/Template.pm | 5 |
1 files changed, 1 insertions, 4 deletions
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; |