зеркало из https://github.com/github/ruby.git
Revert "Use untaint for File.symlink in kernel_require.rb"
This reverts commit d9978ce5d3
.
Untaint was tentatively restored due to test failures. But now, the
failed tests have been removed, so we can revert the tentative fix.
This commit is contained in:
Родитель
9594f57f3d
Коммит
2407e89725
|
@ -41,10 +41,7 @@ module Kernel
|
|||
resolved_path = begin
|
||||
rp = nil
|
||||
$LOAD_PATH[0...Gem.load_path_insert_index || -1].each do |lp|
|
||||
# TODO:
|
||||
# for test_require.rb of ruby core test suite
|
||||
# We should use Gem::UNTAINT after https://bugs.ruby-lang.org/issues/16131
|
||||
safe_lp = lp.dup.untaint
|
||||
safe_lp = lp.dup.tap(&Gem::UNTAINT)
|
||||
begin
|
||||
if File.symlink? safe_lp # for backword compatibility
|
||||
next
|
||||
|
|
Загрузка…
Ссылка в новой задаче