diff options
author | Byron Jones <glob@mozilla.com> | 2015-04-14 09:02:16 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2015-04-14 09:02:16 +0200 |
commit | c042bf8ce8e46b6eea617dc5191df6da28a1f390 (patch) | |
tree | f02e58f3a3442ce0182220a1025015440be55c3c | |
parent | 56e097e7f119038506daec6900d2e99ac70b488d (diff) | |
download | bugzilla-c042bf8ce8e46b6eea617dc5191df6da28a1f390.tar.gz bugzilla-c042bf8ce8e46b6eea617dc5191df6da28a1f390.tar.xz |
Bug 1031035: fix broken XMLRPC
-rw-r--r-- | Bugzilla/WebService/Server/XMLRPC.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm index 834ea60bf..f92936e83 100644 --- a/Bugzilla/WebService/Server/XMLRPC.pm +++ b/Bugzilla/WebService/Server/XMLRPC.pm @@ -144,7 +144,8 @@ sub new { my $self = shift->SUPER::new(@_); # Initialise XML::Parser to not expand references to entities, to prevent DoS require XML::Parser; - $self->{_parser}->parser(parser => XML::Parser->new( NoExpand => 1, Handlers => { Default => sub {} } )); + my $parser = XML::Parser->new( NoExpand => 1, Handlers => { Default => sub {} } ); + $self->{_parser}->parser($parser, $parser); return $self; } |