Skip to content

Commit

Permalink
Add bug fix for #270068
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Claudius authored and segiddins committed Feb 16, 2018
1 parent efcaafe commit f83f911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rubygems/package.rb
Expand Up @@ -424,7 +424,7 @@ def install_location filename, destination_dir # :nodoc:
destination = File.expand_path destination

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

destination.untaint
destination
Expand Down

0 comments on commit f83f911

Please sign in to comment.