Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
52c568cc
Commit
52c568cc
authored
Mar 28, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 553923: Don't word-wrap messages and errors for the WebService
r=dkl, a=mkanat
parent
b0edd0ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Template.pm
Bugzilla/Template.pm
+10
-2
No files found.
Bugzilla/Template.pm
View file @
52c568cc
...
...
@@ -680,10 +680,18 @@ sub create {
$var
=~
s/\>/>/g
;
$var
=~
s/\"/\"/g
;
$var
=~
s/\&/\&/g
;
# Now remove extra whitespace
, and wrap it to 72 characters
.
# Now remove extra whitespace
..
.
my
$collapse_filter
=
$
Template::Filters::
FILTERS
->
{
collapse
};
$var
=
$collapse_filter
->
(
$var
);
$var
=
wrap_comment
(
$var
,
72
);
# And if we're not in the WebService, wrap the message.
# (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
)
{
$var
=
wrap_comment
(
$var
,
72
);
}
return
$var
;
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment