summaryrefslogtreecommitdiff
path: root/lib/rexml/source.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/source.rb')
-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