Permalink
Browse files

Merge pull request #1789 from tenderlove/pathescape

bundler root path should be escaped
  • Loading branch information...
2 parents f65ba39 + ee437f7 commit d6f93f82bff9ca09c5b7b46d15c1c07154c9233e @sferik sferik committed Mar 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/source.rb
@@ -435,7 +435,7 @@ def load_spec_files
end
def relative_path
- if path.to_s.match(%r{^#{Bundler.root.to_s}})
+ if path.to_s.match(%r{^#{Regexp.escape Bundler.root.to_s}})
return path.relative_path_from(Bundler.root)
end
path

0 comments on commit d6f93f8

Please sign in to comment.