diff options
Diffstat (limited to 'dev-ruby/simple-rss/files')
-rw-r--r-- | dev-ruby/simple-rss/files/simple-rss-1.2.3-utf8.patch | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/dev-ruby/simple-rss/files/simple-rss-1.2.3-utf8.patch b/dev-ruby/simple-rss/files/simple-rss-1.2.3-utf8.patch deleted file mode 100644 index 4be17b7276bb..000000000000 --- a/dev-ruby/simple-rss/files/simple-rss-1.2.3-utf8.patch +++ /dev/null @@ -1,34 +0,0 @@ -commit ef0d5db568faa75073a43f45d5f544d4414a8ea3 -Author: Lucas Carlson <lucas@rufy.com> -Date: Tue Aug 24 14:42:26 2010 -0700 - - Adding support for regex of UTF8 characters - -Note that we also applied the change in -http://hightechsorcery.com/2011/04/fixing-a-bug-in-simple-rss/ - -This effectively does not force an encoding for the regexp. - -diff --git a/lib/simple-rss.rb b/lib/simple-rss.rb -index 38a5623..fc375ab 100644 ---- a/lib/simple-rss.rb -+++ b/lib/simple-rss.rb -@@ -152,13 +152,13 @@ class SimpleRSS - end - - def unescape(content) -- if content =~ /([^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]%)/n then -- CGI.unescape(content).gsub(/(<!\[CDATA\[|\]\]>)/,'').strip -+ if content =~ /([^-_.!~*'()a-zA-Z\d;\/?:@&=+$,\[\]]%)/ then -+ CGI.unescape(content).gsub(/(<!\[CDATA\[|\]\]>)/,'').strip - else -- content.gsub(/(<!\[CDATA\[|\]\]>)/,'').strip -+ content.gsub(/(<!\[CDATA\[|\]\]>)/,'').strip - end - end - end - - class SimpleRSSError < StandardError --end -\ No newline at end of file -+end |