Permalink
Browse files

bundler root path should be escaped

  • Loading branch information...
tenderlove authored and hone committed Mar 23, 2012
1 parent d25ba1c commit 2237ffc24a82ae0352123aac93e64c6a3d37c15f
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/source.rb
View
@@ -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

0 comments on commit 2237ffc

Please sign in to comment.