summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Template.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-07-24 21:03:52 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-07-24 21:03:52 +0200
commitfb746c9e8307552f805a29a57a2928a741c837c4 (patch)
treee38d11c16bf1c064ade2c114ebc4ac03c19e6fd6 /Bugzilla/Template.pm
parent3cc5f1bea214ad97e22f190a0de1a7b6c26673ee (diff)
downloadbugzilla-fb746c9e8307552f805a29a57a2928a741c837c4.tar.gz
bugzilla-fb746c9e8307552f805a29a57a2928a741c837c4.tar.xz
Bug 895309 - comments returned via the REST endpoint shouldn't be wrapped
https://bugzilla.mozilla.org/show_bug.cgi?id=859309
Diffstat (limited to 'Bugzilla/Template.pm')
-rw-r--r--Bugzilla/Template.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 40fa0ed1e..9e759e847 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -821,8 +821,10 @@ sub create {
# 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_XMLRPC
+ or Bugzilla->usage_mode == USAGE_MODE_REST)
{
+ print STDERR "var: $var";
$var = wrap_comment($var, 72);
}
$var =~ s/\&nbsp;/ /g;