summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-07-24 21:01:21 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-07-24 21:01:21 +0200
commit25b6b6d659abb43ea593ff784786d3c90d2e1d10 (patch)
treebd225f9d3c761e1c16e59b77e2fcddcd20913784 /Bugzilla
parent682304dcfc97a07575195b8bd40c6e83d9350fe3 (diff)
downloadbugzilla-25b6b6d659abb43ea593ff784786d3c90d2e1d10.tar.gz
bugzilla-25b6b6d659abb43ea593ff784786d3c90d2e1d10.tar.xz
Bug 895309 - comments returned via the REST endpoint shouldn't be wrapped
r/a=glob https://bugzilla.mozilla.org/show_bug.cgi?id=859309
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index f70224a9c..0811d84d2 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -834,8 +834,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;