From 06591ad6b1aa55a9a05a17c1194a52999782fe3f Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Tue, 18 Dec 2007 13:37:10 +0000 Subject: * lib/rss/parser.rb, lib/rss/atom.rb, lib/rss/rss.rb, test/rss/rss-assertions.rb, test/rss/test_atom.rb: use pack/unpack("m") instead of base64 library. * lib/webrick/httpproxy.rb: use delete("\n") instead of chomp/chop because the result of pack("m") might be multi-line. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rss/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rss/parser.rb') diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index b716dd8bdf..7f5f57a1ea 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -474,7 +474,7 @@ module RSS else if klass.have_content? if @last_element.need_base64_encode? - text = Base64.decode64(text.lstrip) + text = text.lstrip.unpack("m").first end @last_element.content = text end -- cgit v1.2.3