[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:
parent
ab42e5a486
commit
50013f7ebc
Notes:
git
2019-11-18 08:01:14 +09:00
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user