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
43b6f4a4
Commit
43b6f4a4
authored
Apr 29, 2008
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 426899: Hack SOAP::Lite to encode upper-ASCII characters correctly for the WebService.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent
6c34f604
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
WebService.pm
Bugzilla/WebService.pm
+10
-0
No files found.
Bugzilla/WebService.pm
View file @
43b6f4a4
...
...
@@ -112,6 +112,16 @@ sub new {
return
$self
;
}
sub
as_string
{
my
$self
=
shift
;
my
(
$value
)
=
@_
;
# Something weird happens with XML::Parser when we have upper-ASCII
# characters encoded as UTF-8, and this fixes it.
utf8::
encode
(
$value
)
if
utf8::
is_utf8
(
$value
)
&&
$value
=~
/^[\x00-\xff]+$/
;
return
$self
->
SUPER::
as_string
(
$value
);
}
1
;
__END__
...
...
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