Commit 25b6b6d6 authored by Dave Lawrence's avatar Dave Lawrence

Bug 895309 - comments returned via the REST endpoint shouldn't be wrapped

parent 682304dc
......@@ -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/\ / /g;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment