Harden attachment ID resolution and missing-file handling

- Sanitize thread-derived attachment ID segments to safe, bounded tokens
- Resolve attachment IDs only when a matching file exists on disk
- Return 404 (not 400) for missing attachment IDs in the attachment route
- Add attachmentStore tests for ID sanitization and extension-based path lookup
88dc6c94aaJulius Marminge committed on 3/1/2026, 6:31:43 PMparent5850315
5 files changedLine totals unavailable