diff options
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/core_ext/kernel_require.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rubygems/core_ext/kernel_require.rb b/lib/rubygems/core_ext/kernel_require.rb index 944bb93bb6..ae0254bfff 100644 --- a/lib/rubygems/core_ext/kernel_require.rb +++ b/lib/rubygems/core_ext/kernel_require.rb @@ -41,7 +41,10 @@ module Kernel resolved_path = begin rp = nil $LOAD_PATH[0...Gem.load_path_insert_index || -1].each do |lp| - safe_lp = lp.dup.tap(&Gem::UNTAINT) + # 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 begin if File.symlink? safe_lp # for backword compatibility next |