mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
- file-preview.ts: validate the :id URL param against a safe charset and restrict the original-name extension to alphanumerics before they feed filesystem paths (closes 9 CodeQL js/path-injection; defense-in-depth on top of the existing DB lookup). - media-input.ts: require the SRT/VTT timecode structure to detect a subtitle rather than a bare '-->' (closes CodeQL js/bad-tag-filter; also rejects non-subtitle files that merely contain '-->').