mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-10-18 04:49:13 +00:00
Threading the checked Path through the callers was right on its own terms but moved CodeQL 29 -> 28: relative_to() is a check it cannot trace, so app_dir still resolved back to the URL parameter and all 24 path alerts stayed. os.path.basename is the sanitiser its path-injection query does follow. Applied with an equality check so this rejects rather than silently truncates -- identical behaviour to the character test above it, same error string, same status code. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014RRtqXDCnvnY6EQwhT5CV9