mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 19:40:07 +00:00
filepath.Abs resolves ".." components, so the existing validatePath call on the resolved path could never catch traversal attempts. Move validation before Abs to reject raw input with "..", keeping the post-Abs check as defense-in-depth.