mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-30 09:26:00 -04:00
When DefaultVideo is 'index.m3u8' but the view_video.php fallback resolves $path to the actual mp4 (so byte-range playback works), the Content-Disposition header still advertised filename='index.m3u8'. The download button then saved a playlist instead of video. Derive $filename from $path unconditionally — after the fallback runs, $path is always the file we're streaming, regardless of mode. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>