summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-09-26 17:10:35 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-09-26 17:10:35 +0200
commit4180e54e7b2c2a147954425312bf1cd485b14d24 (patch)
tree09e9a938e21d5ea1d2b267cdb8131d071212a11b /Bugzilla/Template.pm
parent69016099b3a2ae057f5e33ec30545a8209589446 (diff)
downloadbugzilla-4180e54e7b2c2a147954425312bf1cd485b14d24.tar.gz
bugzilla-4180e54e7b2c2a147954425312bf1cd485b14d24.tar.xz
Bug 917669 - invalid or expired authentication tokens and cookies should throw errors, not be silently ignored
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 434e49da5..81202965c 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -824,10 +824,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/\&nbsp;/ /g;