another fix for download script to report 404 Not found when no file is supplied for it
This commit is contained in:
parent
929462d4a5
commit
6921fd4c21
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ function update_count_of_downloads($file) {
|
|||
}
|
||||
|
||||
|
||||
if(!isset($_GET['file']) ) {
|
||||
header('HTTP/1.0 404 Not Found');
|
||||
die(1);
|
||||
}
|
||||
$file = $_GET['file'];
|
||||
if(!isset($_SERVER['HTTP_RANGE']) ) {
|
||||
update_count_of_downloads($file) ;
|
||||
|
|
Loading…
Reference in a new issue