[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
|
end
|
||||||
rv = super
|
rv = super
|
||||||
end
|
end
|
||||||
rv.taint
|
rv.taint if RUBY_VERSION < '2.7'
|
||||||
rv
|
rv
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ module REXML
|
|||||||
@source = nil
|
@source = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rv.taint
|
rv.taint if RUBY_VERSION < '2.7'
|
||||||
rv
|
rv
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user