Files
hermes-webui/api
asorourx cbe4502c46 Allow legitimate dotfiles in extension archives
_is_safe_relative_path rejected any path segment starting with '.', which
blocks hidden leaf files like .gitkeep / .env.example — not just the ./..
traversal segments. This breaks install of any extension shipping a dotfile,
including the gallery's own profile-avatars (screenshots/.gitkeep) -> "Unsafe
archive member".

Drop the over-broad startswith('.') clause; the '.'/'..' guard plus the
caller's resolved.relative_to(root) containment check already cover traversal.
Verified: .gitkeep is accepted while ../evil and a/./b stay blocked.

Fixes #6619
2026-08-06 03:41:50 +00:00
..
2026-07-22 18:45:24 +00:00