From 2f25202d08edcbd77212b6083b120df4e47e6a87 Mon Sep 17 00:00:00 2001 From: Claire McQuin Date: Fri, 19 Sep 2014 14:23:31 -0700 Subject: Use cleanpath after join --- lib/chef/util/path_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/util') 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 -- cgit v1.2.1