From 07132e0675ecacd9215504e9f9631fa1f83b7670 Mon Sep 17 00:00:00 2001 From: xibbar Date: Tue, 3 Jul 2012 23:32:33 +0000 Subject: Wed Jul 4 08:24:28 2012 Takeyuki FUJIOKA * lib/cgi/util.rb: Add ' to CGI's HTML escaping.[Feature #6620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36299 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 a291d47f99..5b43732476 100644 --- a/test/cgi/test_cgi_util.rb +++ b/test/cgi/test_cgi_util.rb @@ -53,4 +53,8 @@ class CGIUtilTest < Test::Unit::TestCase assert_equal("\n\t\n\t\n\n",CGI::pretty("","\t")) end + def test_cgi_unescapeHTML + assert_equal(CGI::unescapeHTML("'&"><"),"'&\"><") + end + end -- cgit v1.2.3