diff --git a/ChangeLog b/ChangeLog index af25a3ed91..b96482d641 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Aug 11 18:07:39 2013 Kouhei Sutou + + * lib/rexml/parsers/baseparser.rb + (REXML::Parsers::BaseParser#pull_event): Support optional NDATA + in parameter entity declaration. + Sun Aug 11 17:54:07 2013 Kouhei Sutou * NEWS (REXML::Parsers::SAX2Parser): Add about this change. diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb index 597109b76c..6a08b8661d 100644 --- a/lib/rexml/parsers/baseparser.rb +++ b/lib/rexml/parsers/baseparser.rb @@ -283,7 +283,8 @@ module REXML # External reference match[3] = match[3][1..-2] # PUBID match[4] = match[4][1..-2] # HREF - # match is [ :entity, name, PUBLIC, pubid, href ] + match.delete_at(5) if match.size > 5 # Chop out NDATA decl + # match is [ :entity, name, PUBLIC, pubid, href(, ndata)? ] else match[2] = match[2][1..-2] match.pop if match.size == 4