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:
parent
6c878731c1
commit
a5289bfa71
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue