diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-02-20 16:12:06 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-02-20 16:12:06 -0800 |
commit | c4e3398505aaa188777051c2d5e839b79c53c3e2 (patch) | |
tree | 0731210b7f615d7fe29b4099abf37927edb32a17 /lib/chef/provider/package/windows.rb | |
parent | 99f1f32340d023616182e03c7e477b80611190d3 (diff) | |
download | chef-c4e3398505aaa188777051c2d5e839b79c53c3e2.tar.gz |
fix ruby 2.7 URI.unescape deprecation
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/provider/package/windows.rb')
-rw-r--r-- | lib/chef/provider/package/windows.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/package/windows.rb b/lib/chef/provider/package/windows.rb index d21c6576b6..0bad69f9b7 100644 --- a/lib/chef/provider/package/windows.rb +++ b/lib/chef/provider/package/windows.rb @@ -277,7 +277,7 @@ class Chef def default_download_cache_path uri = ::URI.parse(new_resource.source) - filename = ::File.basename(::URI.unescape(uri.path)) + filename = ::File.basename(::CGI.unescape(uri.path)) file_cache_dir = Chef::FileCache.create_cache_path("package/") Chef::Util::PathHelper.cleanpath("#{file_cache_dir}/#{filename}") end |