mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-17 23:32:30 +08:00
- Sanitize backslashes and parent-directory sequences in request log filenames to prevent directory traversal attacks on Windows. - Add strict validation in `createUniqueLogFile` to reject invalid or unsafe filenames. - Ensure all generated log files remain strictly within the designated logs directory.