diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-07-24 21:03:52 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-07-24 21:03:52 +0200 |
commit | fb746c9e8307552f805a29a57a2928a741c837c4 (patch) | |
tree | e38d11c16bf1c064ade2c114ebc4ac03c19e6fd6 | |
parent | 3cc5f1bea214ad97e22f190a0de1a7b6c26673ee (diff) | |
download | bugzilla-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
-rw-r--r-- | Bugzilla/Template.pm | 4 |
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/\ / /g; |