From 50013f7ebcafeea7f5163dc6ed1b1bf58c465ac7 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Fri, 18 Oct 2019 11:33:09 -0700 Subject: [ruby/rexml] Only taint on Ruby <2.7 Ruby 2.7 deprecates taint and it no longer has an effect. --- lib/rexml/source.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rexml') diff --git a/lib/rexml/source.rb b/lib/rexml/source.rb index 770aefc818..90b370b989 100644 --- a/lib/rexml/source.rb +++ b/lib/rexml/source.rb @@ -200,7 +200,7 @@ module REXML end rv = super end - rv.taint + rv.taint if RUBY_VERSION < '2.7' rv end @@ -228,7 +228,7 @@ module REXML @source = nil end end - rv.taint + rv.taint if RUBY_VERSION < '2.7' rv end -- cgit v1.2.3