diff options
author | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-03 23:32:33 +0000 |
---|---|---|
committer | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-03 23:32:33 +0000 |
commit | 07132e0675ecacd9215504e9f9631fa1f83b7670 (patch) | |
tree | bfd96a48909826b8006fabae1463e60f9e5f94d2 /test/cgi/test_cgi_util.rb | |
parent | ab63d24b049db35df4a68770b9fed6a11696961a (diff) |
Wed Jul 4 08:24:28 2012 Takeyuki FUJIOKA <[email protected]>
* 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
Diffstat (limited to 'test/cgi/test_cgi_util.rb')
-rw-r--r-- | test/cgi/test_cgi_util.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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("<HTML>\n\t<BODY>\n\t</BODY>\n</HTML>\n",CGI::pretty("<HTML><BODY></BODY></HTML>","\t")) end + def test_cgi_unescapeHTML + assert_equal(CGI::unescapeHTML("'&"><"),"'&\"><") + end + end |