burr
burr copied to clipboard
Improve input validation in LocalBackend and default server binding
This change tightens input handling in the local tracking backend and updates the default dev server configuration.
Changes:
- Validates
project_idandapp_ididentifiers with a strict character allowlist - Adds a
_safe_join()helper that resolves and bounds-checks paths against the configured base directory - Returns HTTP 400 for invalid identifiers or out-of-bounds paths
- Defaults the tracking server to bind on
127.0.0.1instead of0.0.0.0
Includes regression tests for identifier and path validation.