diff options
-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 f67817fce6..62679b9c82 100644 --- a/test/cgi/test_cgi_util.rb +++ b/test/cgi/test_cgi_util.rb @@ -98,6 +98,10 @@ class CGIUtilTest < Test::Unit::TestCase assert_equal("'&\"><", CGI::unescapeHTML("'&"><")) end + def test_cgi_unescapeHTML_invalid + assert_equal('&<&>"&abcdefghijklmn', CGI::unescapeHTML('&<&>"&abcdefghijklmn')) + end + Encoding.list.each do |enc| begin escaped = "'&"><".encode(enc) |