Skip to content

Commit

Permalink
Fix viewing GitHub submissions
Browse files Browse the repository at this point in the history
(cherry picked from commit 78f7933)
  • Loading branch information
NicholasMy committed Feb 17, 2025
1 parent 320631b commit 8a5b5a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/archive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def self.sanitize_directories(files)

# edge case for removing "./" from pathnames
if file[:pathname].include?("./")
file[:pathname] = File.cleanpath(file[:pathname], rel_root = true).gsub("..", "__PARENT__")
file[:pathname] = Pathname.new(file[:pathname]).cleanpath.to_s.gsub("..", "__PARENT__")
end

if(file[:directory])
Expand Down

0 comments on commit 8a5b5a7

Please sign in to comment.