mirror of
https://github.com/php/web-php.git
synced 2026-04-24 15:38:06 +02:00
Fix downloads by using the right variable.
Fixes bug #66142 (Impossible to download PHP from website).
This commit is contained in:
@@ -32,7 +32,7 @@ function download_file($mirror, $file)
|
||||
// Redirect to the particular file
|
||||
if (!headers_sent()) {
|
||||
status_header(302);
|
||||
header('Location: ' . $mirror . 'distributions/' . $found);
|
||||
header('Location: ' . $mirror . 'distributions/' . $file);
|
||||
} else {
|
||||
exit("Unable to serve you the requested file for download");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user