mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/fileutils] Remove use of untaint on Ruby 2.7 to avoid deprecation warnings
https://github.com/ruby/fileutils/commit/5ac9a8a1f7
This commit is contained in:
parent
39281d5774
commit
e4cd0d7287
1 changed files with 2 additions and 1 deletions
|
@ -1300,7 +1300,8 @@ module FileUtils
|
|||
.reject {|n| n == '.' or n == '..' }
|
||||
end
|
||||
|
||||
files.map {|n| Entry_.new(prefix(), join(rel(), n.untaint)) }
|
||||
untaint = RUBY_VERSION < '2.7'
|
||||
files.map {|n| Entry_.new(prefix(), join(rel(), untaint ? n.untaint : n)) }
|
||||
end
|
||||
|
||||
def stat
|
||||
|
|
Loading…
Add table
Reference in a new issue