summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-09-19 14:23:31 -0700
committerClaire McQuin <claire@getchef.com>2014-09-22 11:22:54 -0700
commit2f25202d08edcbd77212b6083b120df4e47e6a87 (patch)
tree62db5bdc43d83f968ec8da8ddd5936d1b4816117
parente85e1399270192cf9ee29c5263a9b7aca4ca92fa (diff)
downloadchef-2f25202d08edcbd77212b6083b120df4e47e6a87.tar.gz
Use cleanpath after join
-rw-r--r--lib/chef/util/path_helper.rb2
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