Skip to content
Browse files

bundler root path should be escaped

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