зеркало из https://github.com/github/ruby.git
[ruby/rubygems] Install location safety should consider casing
https://github.com/rubygems/rubygems/commit/0a0ad34af3
This commit is contained in:
Родитель
6c878731c1
Коммит
a5289bfa71
|
@ -471,7 +471,7 @@ EOM
|
|||
destination = File.expand_path(filename, destination_dir)
|
||||
|
||||
raise Gem::Package::PathError.new(destination, destination_dir) unless
|
||||
destination.start_with? destination_dir + '/'
|
||||
normalize_path(destination).start_with? normalize_path(destination_dir + '/')
|
||||
|
||||
begin
|
||||
real_destination = File.expand_path(File.realpath(destination))
|
||||
|
|
Загрузка…
Ссылка в новой задаче