Fixed Insecure Operation in require
Caused by 00cd5d74ce
This commit is contained in:
parent
e0fc9b7ccd
commit
7624154595
@ -40,7 +40,7 @@ module Kernel
|
|||||||
rp = nil
|
rp = nil
|
||||||
$LOAD_PATH[0...Gem.load_path_insert_index || -1].each do |lp|
|
$LOAD_PATH[0...Gem.load_path_insert_index || -1].each do |lp|
|
||||||
Gem.suffixes.each do |s|
|
Gem.suffixes.each do |s|
|
||||||
full_path = File.expand_path(File.join(lp, "#{path}#{s}"))
|
full_path = File.expand_path(File.join(lp, "#{path}#{s}").untaint)
|
||||||
if File.file?(full_path)
|
if File.file?(full_path)
|
||||||
rp = full_path
|
rp = full_path
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user