summaryrefslogtreecommitdiff
path: root/lib/rexml
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-10-18 11:33:09 -0700
committerJeremy Evans <code@jeremyevans.net>2019-11-18 01:00:25 +0200
commit50013f7ebcafeea7f5163dc6ed1b1bf58c465ac7 (patch)
tree432cfca1e918213678cd289a996d6c81a77b75d1 /lib/rexml
parentab42e5a486a5b27107296fa34056f03ac878e306 (diff)
[ruby/rexml] Only taint on Ruby <2.7
Ruby 2.7 deprecates taint and it no longer has an effect.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2476
Diffstat (limited to 'lib/rexml')
-rw-r--r--lib/rexml/source.rb4
1 files changed, 2 insertions, 2 deletions
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