mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-03 16:05:24 -04:00
More correct assignment of the $path_info value (view_video.php)
This commit is contained in:
1 parent
fc9a8c593e
commit
08f7afe6a4
1 file changed
+1
-1
@@ -114,7 +114,7 @@ if ( isset($_SERVER['HTTP_RANGE']) ) {
|
||||
}
|
||||
} # end if HTTP_RANGE
|
||||
|
||||
$path_info = ($mode == 'mp4') ? pathinfo($path) : pathinfo($Event->DefaultVideo());
|
||||
$path_info = pathinfo($path ? $path : (($Event) ? $Event->DefaultVideo() : ''));
|
||||
header('Content-type: video/'.$path_info['extension']);
|
||||
header('Accept-Ranges: bytes');
|
||||
header('Content-Length: '.$length);
|
||||
|
||||
Reference in new issue
Block a user