diff options
-rw-r--r-- | lib/rss/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |