mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-05-18 11:35:15 -04:00
Fixed incorrect check on download query parm.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2044 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
@@ -81,7 +81,7 @@ if ( $dir = opendir( $event_dir ) )
|
||||
closedir( $dir );
|
||||
}
|
||||
|
||||
if ( isset($download) )
|
||||
if ( !empty($download) )
|
||||
{
|
||||
header( "Content-disposition: attachment; filename=".$video_files[$download]."; size=".filesize($video_files[$download]) );
|
||||
readfile( $video_files[$download] );
|
||||
|
||||
Reference in New Issue
Block a user