1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rubygems] Install location safety should consider casing

https://github.com/rubygems/rubygems/commit/0a0ad34af3
This commit is contained in:
David Rodríguez 2021-10-05 13:14:17 +02:00 committed by git
parent 6c878731c1
commit a5289bfa71

View file

@ -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))