summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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