merge revision(s) 40181: [Backport #8183]

* lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character.
  [Bug #8183]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagachika 2013-04-15 16:34:55 +00:00
parent e3dbba340e
commit 3a645975f5
3 changed files with 6 additions and 2 deletions

View file

@ -61,4 +61,8 @@ class CGIUtilTest < Test::Unit::TestCase
assert_equal(CGI::unescapeHTML("&#39;&amp;&quot;&gt;&lt;"),"'&\"><")
end
def test_cgi_unescapeHTML_uppercasecharacter
assert_equal(CGI::unescapeHTML("&#x3042;&#x3044;&#X3046;"),"\xE3\x81\x82\xE3\x81\x84\xE3\x81\x86")
end
end