diff -ruN rexml_3.1.5-orig/src/rexml/entity.rb rexml_3.1.5/src/rexml/entity.rb
|
old
|
new
|
|
| 128 | 128 | # doctype.entity('yada').value #-> "nanoo bar nanoo" |
| 129 | 129 | def value |
| 130 | 130 | if @value |
| 131 | | matches = @value.scan(PEREFERENCE_RE) |
| | 131 | matches = @value.scan(PEREFERENCE_RE).uniq |
| 132 | 132 | rv = @value.clone |
| 133 | 133 | if @parent |
| 134 | 134 | matches.each do |entity_reference| |
diff -ruN rexml_3.1.5-orig/src/rexml/parsers/baseparser.rb rexml_3.1.5/src/rexml/parsers/baseparser.rb
|
old
|
new
|
|
| 422 | 422 | [Integer(m)].pack('U*') |
| 423 | 423 | } |
| 424 | 424 | matches.collect!{|x|x[0]}.compact! |
| | 425 | matches.uniq! |
| 425 | 426 | if matches.size > 0 |
| 426 | 427 | matches.each do |entity_reference| |
| 427 | 428 | unless filter and filter.include?(entity_reference) |
diff -ruN rexml_3.1.5-orig/src/rexml/text.rb rexml_3.1.5/src/rexml/text.rb
|
old
|
new
|
|
| 316 | 316 | [Integer(m)].pack('U*') |
| 317 | 317 | } |
| 318 | 318 | matches.collect!{|x|x[0]}.compact! |
| | 319 | matches.uniq! |
| 319 | 320 | if matches.size > 0 |
| 320 | 321 | if doctype |
| 321 | 322 | matches.each do |entity_reference| |