diff options
| author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-18 13:37:10 +0000 |
|---|---|---|
| committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-18 13:37:10 +0000 |
| commit | 92f480254b9c33907f92c74ad195327cfda2ed6f (patch) | |
| tree | 14c9a6deb0d454b3123a56a12f830344ed9b65dd /lib/rss/parser.rb | |
| parent | e2e29af2b6054dee368de55ba522c58f9038574e (diff) | |
| download | ruby-92f480254b9c33907f92c74ad195327cfda2ed6f.tar.gz ruby-92f480254b9c33907f92c74ad195327cfda2ed6f.tar.xz ruby-92f480254b9c33907f92c74ad195327cfda2ed6f.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@14303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rss/parser.rb')
| -rw-r--r-- | lib/rss/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index b716dd8bd..7f5f57a1e 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 |
