From 88bcccd4333fee37e90dc524ccb7cc20745e0332 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 20 May 2013 01:40:30 +0000 Subject: webrick: fix non-ascii escape bugs * lib/webrick/htmlutils.rb (WEBrick::HTMLUtils#escape): replace HTML meta chars even in non-ascii string. [Bug #8425] [ruby-core:55052] * lib/webrick/httputils.rb (WEBrick::HTTPUtils#{_escape,_unescape}): fix %-escape encodings. [Bug #8425] [ruby-core:55052] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/webrick/test_htmlutils.rb | 6 +++++- test/webrick/test_httputils.rb | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'test/webrick') diff --git a/test/webrick/test_htmlutils.rb b/test/webrick/test_htmlutils.rb index 987bc229c9..1fe49ee226 100644 --- a/test/webrick/test_htmlutils.rb +++ b/test/webrick/test_htmlutils.rb @@ -11,6 +11,10 @@ class TestWEBrickHTMLUtils < Test::Unit::TestCase assert_equal("foo"bar", escape("foo\"bar")) assert_equal("foo>bar", escape("foo>bar")) assert_equal("foo<bar", escape("foo