Decoding of zero padded XML entities

This would previously fail due to the lack of an explicit base to use
for Integer().
This commit is contained in:
Yorick Peterse committed 2015-04-20 00:13:15 +02:00
1 parent 13e2c3d82f
commit 853d804f34
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ module Oga
if input.include?(AMPERSAND)
input = input.gsub(CODEPOINT_ENTITY) do |match|
[$1 ? Integer($2, 16) : Integer($2)].pack('U')
[$1 ? Integer($2, 16) : Integer($2, 10)].pack('U*')
end
end