[ruby/rubygems] Install location safety should consider casing
https://github.com/rubygems/rubygems/commit/0a0ad34af3
This commit is contained in:
parent
6c878731c1
commit
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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user