diff options
author | Jeremy Evans <[email protected]> | 2019-11-14 12:30:56 -0800 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2019-11-18 01:00:25 +0200 |
commit | 23f1fb066303838a0d045b5981fe3c4ad077399e () | |
tree | 4e8bb773dee28cc78036bd605977c193301202ff | |
parent | 50013f7ebcafeea7f5163dc6ed1b1bf58c465ac7 (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.rb | 2 |
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 |