Files
romm/backend/utils
Georges-Antoine Assi bb0de382bb fix(assets): reject emulator names that are not a single folder on upload
POST /api/saves and POST /api/states joined the `emulator` query parameter
straight into the asset path, so a value like `a/b` created nested
directories and landed in file_path. Both endpoints now return 400 unless
the name survives sanitize_filename unchanged, and cap it at the column
length so an over-long value is a 422 instead of a database error.

Fixes #4839

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 14:47:33 -04:00
..
2026-06-28 21:48:50 -04:00
2026-07-06 22:17:56 -04:00