aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/path_support.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/path_support.rb')
-rw-r--r--lib/rubygems/path_support.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rubygems/path_support.rb b/lib/rubygems/path_support.rb
index 5a16d7a6df..2af303eecf 100644
--- a/lib/rubygems/path_support.rb
+++ b/lib/rubygems/path_support.rb
@@ -36,6 +36,8 @@ class Gem::PathSupport
@spec_cache_dir =
env["GEM_SPEC_CACHE"] || ENV["GEM_SPEC_CACHE"] ||
Gem.default_spec_cache_dir
+
+ @spec_cache_dir = @spec_cache_dir.dup.untaint
end
private