Skip to content

Commit

Permalink
Ensure the String returned by URI.expand_path isn't frozen.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Jan 25, 2024
1 parent 6fa44f6 commit 7ba3835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spidr/extensions/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def self.expand_path(path)
unless stack.empty?
"#{leading_slash}#{stack.join('/')}#{trailing_slash}"
else
'/'
String.new('/')
end
end
end

0 comments on commit 7ba3835

Please sign in to comment.