summaryrefslogtreecommitdiff
path: root/lib/bundler/source.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-03-23 11:42:37 -0700
committerTerence Lee <hone02@gmail.com>2012-03-23 16:46:29 -0700
commit2237ffc24a82ae0352123aac93e64c6a3d37c15f (patch)
treeb04d7ad60f47439d30a3e24bf6484894862e1864 /lib/bundler/source.rb
parentd25ba1c6a08aa6e1eac4934af6537bcabef90e57 (diff)
downloadbundler-2237ffc24a82ae0352123aac93e64c6a3d37c15f.tar.gz
bundler root path should be escaped
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r--lib/bundler/source.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index 5e058752e0..0de9983d2c 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -419,7 +419,7 @@ module Bundler
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