summaryrefslogtreecommitdiff
path: root/lib/rss/parser.rb
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2019-11-14 12:30:56 -0800
committerJeremy Evans <[email protected]>2019-11-18 01:00:25 +0200
commit23f1fb066303838a0d045b5981fe3c4ad077399e ()
tree4e8bb773dee28cc78036bd605977c193301202ff /lib/rss/parser.rb
parent50013f7ebcafeea7f5163dc6ed1b1bf58c465ac7 (diff)
[ruby/rss] Only check taint on Ruby <2.7
Ruby 2.7 deprecates taint and it no longer has an effect.
Notes: Merged: https://.com/ruby/ruby/pull/2476
-rw-r--r--lib/rss/parser.rb2
1 files changed, 1 insertions, 1 deletions
@@ -120,7 +120,7 @@ module RSS
if uri.respond_to?(:read)
uri.read
- elsif !rss.tainted? and File.readable?(rss)
File.open(rss) {|f| f.read}
else
rss