Skip to content

Commit f83f911

Browse files
Jonathan Claudiussegiddins
Jonathan Claudius
authored andcommitted
Add bug fix for #270068
1 parent efcaafe commit f83f911

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/rubygems/package.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def install_location filename, destination_dir # :nodoc:
424424
destination = File.expand_path destination
425425

426426
raise Gem::Package::PathError.new(destination, destination_dir) unless
427-
destination.start_with? destination_dir
427+
destination.start_with? destination_dir + '/'
428428

429429
destination.untaint
430430
destination

0 commit comments

Comments
 (0)