ruby-changes:58802
From: Jeremy <ko1@a...>
Date: Mon, 18 Nov 2019 08:00:54 +0900 (JST)
Subject: [ruby-changes:58802] 50013f7ebc (master): [ruby/rexml] Only taint on Ruby <2.7
https://git.ruby-lang.org/ruby.git/commit/?id=50013f7ebc From 50013f7ebcafeea7f5163dc6ed1b1bf58c465ac7 Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Fri, 18 Oct 2019 11:33:09 -0700 Subject: [ruby/rexml] Only taint on Ruby <2.7 Ruby 2.7 deprecates taint and it no longer has an effect. diff --git a/lib/rexml/source.rb b/lib/rexml/source.rb index 770aefc..90b370b 100644 --- a/lib/rexml/source.rb +++ b/lib/rexml/source.rb @@ -200,7 +200,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/source.rb#L200 end rv = super end - rv.taint + rv.taint if RUBY_VERSION < '2.7' rv end @@ -228,7 +228,7 @@ module REXML https://github.com/ruby/ruby/blob/trunk/lib/rexml/source.rb#L228 @source = nil end end - rv.taint + rv.taint if RUBY_VERSION < '2.7' rv end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/