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:
1 parent
13e2c3d82f
commit
853d804f34
2 files changed
+5
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user