mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-22 17:19:06 +01:00
Use os.OpenRoot to restrict file access to the application root, preventing directory traversal attacks through the file download endpoint. Also add test to verify path traversal attempts are blocked.
2.2 KiB
2.2 KiB