зеркало из https://github.com/github/ruby.git
[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:
Родитель
39281d5774
Коммит
e4cd0d7287
|
@ -1300,7 +1300,8 @@ module FileUtils
|
||||||
.reject {|n| n == '.' or n == '..' }
|
.reject {|n| n == '.' or n == '..' }
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
def stat
|
def stat
|
||||||
|
|
Загрузка…
Ссылка в новой задаче