summaryrefslogtreecommitdiff
path: root/lib/rubygems/package.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-10-05 13:14:17 +0200
committergit <svn-admin@ruby-lang.org>2021-10-10 23:12:38 +0900
commita5289bfa71d85d7c3ab1ebf94237edecd847851b (patch)
tree8e1fe7be8fb6f1d1311d47f45a82e3eae8e273bf /lib/rubygems/package.rb
parent6c878731c1b0de974e071d532e7708e1a1ce9d71 (diff)
[ruby/rubygems] Install location safety should consider casing
https://github.com/rubygems/rubygems/commit/0a0ad34af3
Diffstat (limited to 'lib/rubygems/package.rb')
-rw-r--r--lib/rubygems/package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb
index 10d9b85bf3..7f843f4e0a 100644
--- a/lib/rubygems/package.rb
+++ b/lib/rubygems/package.rb
@@ -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))