ruby-changes:68359
From: David <ko1@a...>
Date: Sun, 10 Oct 2021 23:12:51 +0900 (JST)
Subject: [ruby-changes:68359] a5289bfa71 (master): [ruby/rubygems] Install location safety should consider casing
https://git.ruby-lang.org/ruby.git/commit/?id=a5289bfa71 From a5289bfa71d85d7c3ab1ebf94237edecd847851b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Tue, 5 Oct 2021 13:14:17 +0200 Subject: [ruby/rubygems] Install location safety should consider casing https://github.com/rubygems/rubygems/commit/0a0ad34af3 --- lib/rubygems/package.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 https://github.com/ruby/ruby/blob/trunk/lib/rubygems/package.rb#L471 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)) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/