mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-20 10:57:22 +08:00
This function was dropped during merge, causing ImportError in test_upload_filename_sanitization.py and breaking upload handling. Re-implemented with null-byte removal, path traversal stripping, fakepath prefix removal, and empty-fallback to UUID.