Skip to content

Commit

Permalink
bundler root path should be escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove authored and hone committed Mar 23, 2012
1 parent d25ba1c commit 2237ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bundler/source.rb
Expand Up @@ -419,7 +419,7 @@ def cache(spec)
private

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

Expand Down

0 comments on commit 2237ffc

Please sign in to comment.