mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-08 14:43:37 -04:00
More correct assignment of the $path_info value (view_video.php)
This commit is contained in:
@@ -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