We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b09ffb6 commit d5c47c9Copy full SHA for d5c47c9
Bugzilla/WebService/Server/XMLRPC.pm
@@ -135,7 +135,8 @@ sub new {
135
my $self = shift->SUPER::new(@_);
136
# Initialise XML::Parser to not expand references to entities, to prevent DoS
137
require XML::Parser;
138
- $self->{_parser}->parser(parser => XML::Parser->new( NoExpand => 1, Handlers => { Default => sub {} } ));
+ my $parser = XML::Parser->new( NoExpand => 1, Handlers => { Default => sub {} } );
139
+ $self->{_parser}->parser($parser, $parser);
140
return $self;
141
}
142
0 commit comments