mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-04-12 12:25:50 +00:00
Previously, path traversal attempts like `../../../../../../../etc/passwd` were incorrectly reported as screen recording permission errors instead of file system errors. Changes: - Modified ScreenCapture error handling to distinguish between CaptureError types and ScreenCaptureKit errors - CaptureError.fileWriteError now bypasses screen recording permission detection - Added path validation in OutputPathResolver to detect and log path traversal attempts - Added logging for system-sensitive path access attempts - Comprehensive test coverage for various path traversal patterns and error scenarios This ensures users get accurate error messages that guide them to the actual problem (invalid paths, missing directories, file permissions) rather than misleading screen recording permission prompts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| tools | ||
| utils | ||