diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-03-23 11:42:37 -0700 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2012-03-23 16:46:29 -0700 |
commit | 2237ffc24a82ae0352123aac93e64c6a3d37c15f (patch) | |
tree | b04d7ad60f47439d30a3e24bf6484894862e1864 /lib/bundler/source.rb | |
parent | d25ba1c6a08aa6e1eac4934af6537bcabef90e57 (diff) | |
download | bundler-2237ffc24a82ae0352123aac93e64c6a3d37c15f.tar.gz |
bundler root path should be escaped
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r-- | lib/bundler/source.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index 5e058752..0de9983d 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 |