diff options
author | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2005-09-28 07:16:10 +0000 |
---|---|---|
committer | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2005-09-28 07:16:10 +0000 |
commit | 2296da8a7783873f80ba97beb7bc512bee44e5c5 (patch) | |
tree | 1dba143a6cdbea82fd5301334bf5f9c55716d992 /lib/feed2imap/channel.rb | |
parent | 9aa7db265118fabfffddd677d6ad3aa73af2d23a (diff) | |
download | feed2imap-2296da8a7783873f80ba97beb7bc512bee44e5c5.tar.gz feed2imap-2296da8a7783873f80ba97beb7bc512bee44e5c5.tar.bz2 feed2imap-2296da8a7783873f80ba97beb7bc512bee44e5c5.zip |
atom parser fix, issue warning when config file is world-readable
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@69 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/channel.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/feed2imap/channel.rb b/lib/feed2imap/channel.rb index 9ed3bdc..c43c254 100644 --- a/lib/feed2imap/channel.rb +++ b/lib/feed2imap/channel.rb @@ -91,9 +91,10 @@ class Channel end # Link doc.root.each_element('/feed/link') do |e| - if e.attribute('type').value == 'text/html' or - e.attribute('type').value == 'application/xhtml' or - e.attribute('type').value == 'application/xhtml+xml' + if e.attribute('type') and ( + e.attribute('type').value == 'text/html' or + e.attribute('type').value == 'application/xhtml' or + e.attribute('type').value == 'application/xhtml+xml') if (h = e.attribute('href')) && h @link = h.value.rmWhiteSpace! end @@ -124,7 +125,6 @@ class Item attr_accessor :title, :link, :content, :date, :creator, :subject, :category, :cacheditem attr_reader :channel - def initialize(item = nil, channel = nil) @channel = channel @title, @link, @content, @date, @creator, @subject, @category = nil |