diff options
author | Claire McQuin <claire@getchef.com> | 2014-09-19 14:23:31 -0700 |
---|---|---|
committer | Claire McQuin <claire@getchef.com> | 2014-09-22 11:22:54 -0700 |
commit | 2f25202d08edcbd77212b6083b120df4e47e6a87 (patch) | |
tree | 62db5bdc43d83f968ec8da8ddd5936d1b4816117 | |
parent | e85e1399270192cf9ee29c5263a9b7aca4ca92fa (diff) | |
download | chef-2f25202d08edcbd77212b6083b120df4e47e6a87.tar.gz |
Use cleanpath after join
-rw-r--r-- | lib/chef/util/path_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/util/path_helper.rb b/lib/chef/util/path_helper.rb index 9aea2645d7..3dde7b1887 100644 --- a/lib/chef/util/path_helper.rb +++ b/lib/chef/util/path_helper.rb @@ -138,7 +138,7 @@ class Chef # to be escaped before globbing can be done. # http://stackoverflow.com/questions/14127343 def self.escape_glob(*parts) - path = join(parts) + path = cleanpath(join(parts)) path.gsub(/[\\\{\}\[\]\*\?]/) { |x| "\\"+x } end end |