Skip to content

Commit

Permalink
Fix RuntimeError for valid feeds
Browse files Browse the repository at this point in the history
* Change `#entity` to not match against default entities

Close #198
  • Loading branch information
vikiv480 committed Aug 14, 2024
1 parent e14847c commit 981b424
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/rexml/parsers/baseparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,13 @@ def pull_event
private :pull_event

def entity( reference, entities )
value = nil
value = entities[ reference ] if entities
if value
record_entity_expansion
else
value = DEFAULT_ENTITIES[ reference ]
value = value[2] if value
return unnormalize( value, entities ) if value
end
unnormalize( value, entities ) if value

nil
end

# Escapes all possible entities
Expand Down

0 comments on commit 981b424

Please sign in to comment.