mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi/util.rb (CGI::unescape): bugfix to unescape the multibyte
string. Thanks nobu and tDiary dev members. [Bug #3909] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74dcda0d41
commit
fc6d58ccc4
3 changed files with 7 additions and 1 deletions
|
@ -27,6 +27,7 @@ class CGIUtilTest < Test::Unit::TestCase
|
|||
def test_cgi_unescape
|
||||
assert_equal(@str1, CGI::unescape('%26%3C%3E%22+%E3%82%86%E3%82%93%E3%82%86%E3%82%93'))
|
||||
assert_equal(@str1.encoding, CGI::unescape('%26%3C%3E%22+%E3%82%86%E3%82%93%E3%82%86%E3%82%93').encoding) if defined?(::Encoding)
|
||||
assert_equal("\u{30E1 30E2 30EA 691C 7D22}", CGI.unescape("\u{30E1 30E2 30EA}%E6%A4%9C%E7%B4%A2"))
|
||||
end
|
||||
|
||||
def test_cgi_pretty
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue