From 23f1fb066303838a0d045b5981fe3c4ad077399e Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 14 Nov 2019 12:30:56 -0800 Subject: [ruby/rss] Only check taint on Ruby <2.7 Ruby 2.7 deprecates taint and it no longer has an effect. --- lib/rss/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb index 3a34d0adb4..e1bcfc53e3 100644 --- a/lib/rss/parser.rb +++ b/lib/rss/parser.rb @@ -120,7 +120,7 @@ module RSS if uri.respond_to?(:read) uri.read - elsif !rss.tainted? and File.readable?(rss) + elsif (RUBY_VERSION >= '2.7' || !rss.tainted?) and File.readable?(rss) File.open(rss) {|f| f.read} else rss -- cgit v1.2.3