[ruby/rexml] Only taint on Ruby <2.7

Ruby 2.7 deprecates taint and it no longer has an effect.
This commit is contained in:
Jeremy Evans 2019-10-18 11:33:09 -07:00
parent ab42e5a486
commit 50013f7ebc
Notes: git 2019-11-18 08:01:14 +09:00

View File

@ -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