From 5865e7604c1f2e5d04f4d8ff5ec5f1449da26e59 Mon Sep 17 00:00:00 2001 From: xibbar Date: Mon, 8 Apr 2013 04:06:39 +0000 Subject: * lib/cgi/util.rb (CGI::unescapeHTML): fix Hexadecimal numeric character. [Bug #8183] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/cgi/test_cgi_util.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/cgi') diff --git a/test/cgi/test_cgi_util.rb b/test/cgi/test_cgi_util.rb index 2c003a0300..7129cb6c9e 100644 --- a/test/cgi/test_cgi_util.rb +++ b/test/cgi/test_cgi_util.rb @@ -61,4 +61,8 @@ class CGIUtilTest < Test::Unit::TestCase assert_equal(CGI::unescapeHTML("'&"><"),"'&\"><") end + def test_cgi_unescapeHTML_uppercasecharacter + assert_equal(CGI::unescapeHTML("あいう"),"\xE3\x81\x82\xE3\x81\x84\xE3\x81\x86") + end + end -- cgit v1.2.3