lib/feedparser/feedparser.rb in ruby-feedparser-0.9.4 vs lib/feedparser/feedparser.rb in ruby-feedparser-0.9.5

- old
+ new

@@ -1,18 +1,18 @@ +require 'cgi' require 'rexml/document' require 'time' require 'feedparser/textconverters' require 'feedparser/rexml_patch' require 'feedparser/text-output' +require 'feedparser/version' require 'base64' require 'magic' require 'uri' module FeedParser - VERSION = "0.9.4" - class UnknownFeedTypeException < RuntimeError end def self.recode(str) encoding = nil @@ -231,10 +231,10 @@ attr_writer :link def link if @link - uri = URI.parse(URI.escape(@link)) + uri = URI.parse(CGI.escape(@link)) if uri.hostname && uri.scheme @link elsif feed && feed.origin [feed.origin, @link].compact.join else