Skip to content

Commit

Permalink
Fixed entity parsing thanks to Bernt Budde. RT#32011
Browse files Browse the repository at this point in the history
  • Loading branch information
timbunce committed Jun 11, 2010
1 parent 4244479 commit 6f61e0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Changes
Expand Up @@ -8,8 +8,9 @@ Changes - List of significant changes to Yahoo::Search
Yahoo::Search::XML parser, like it does when using the XML::Simple
parser. Added tests for same. RT#45029 RT#35213 RT#31618

Added support for Region parameter thanks to Hendrik Weimer.
RT#54591
Fixed entity parsing thanks to Bernt Budde. RT#32011

Added Region parameter thanks to Hendrik Weimer. RT#54591

Converted to use Dist::Zilla for releases.

Expand Down
4 changes: 3 additions & 1 deletion lib/Yahoo/Search/XML.pm
Expand Up @@ -152,8 +152,10 @@ sub _entity($)
my $name = shift;
if (my $val = $EntityDecode{$name}) {
return $val;
} elsif ($val =~ m/^#(\d+)$/) {
} elsif ($name =~ m/^#(\d+)$/) {
return chr($1);
} elsif ($name =~ m/^#x([0-9a-f]+)$/i) {
return chr(hex($1));
} else {
_error(__LINE__, "unknown entity &$name;");
}
Expand Down

0 comments on commit 6f61e0e

Please sign in to comment.