mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-21 05:54:22 -04:00
" to '
This commit is contained in:
1 parent
71a9763c32
commit
7697b8c7be
1 file changed
+3
-4
@@ -40,12 +40,12 @@ if ( ! empty($_REQUEST['eid'] ) ) {
|
||||
$path = $Event->Path().'/'.$Event->DefaultVideo();
|
||||
Debug("Path: $path");
|
||||
} else {
|
||||
$errorText = "No video path";
|
||||
$errorText = 'No video path';
|
||||
}
|
||||
|
||||
if ( $errorText ) {
|
||||
Error( $errorText );
|
||||
header ('HTTP/1.0 404 Not Found');
|
||||
header('HTTP/1.0 404 Not Found');
|
||||
die();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ $size = filesize($path);
|
||||
|
||||
$fh = @fopen($path,'rb');
|
||||
if ( ! $fh ) {
|
||||
header ("HTTP/1.0 404 Not Found");
|
||||
header('HTTP/1.0 404 Not Found');
|
||||
die();
|
||||
}
|
||||
|
||||
@@ -86,7 +86,6 @@ if ( $begin > 0 || $end < $size-1 ) {
|
||||
header('HTTP/1.0 200 OK');
|
||||
}
|
||||
|
||||
|
||||
// Apparently without these we get a few extra bytes of output at the end...
|
||||
ob_clean();
|
||||
flush();
|
||||
|
||||
Reference in new issue
Block a user