com web/php: Fix downloads by using the right variable.: include/do-download.inc

From: Date: Thu, 21 Nov 2013 22:01:15 +0000
Subject: com web/php: Fix downloads by using the right variable.: include/do-download.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-17166@lists.php.net to get a copy of this message
Commit: f85fbcbfc593828faf230bb45f83efa394fbedea Author: Adam Harvey <aharvey@php.net> Thu, 21 Nov 2013 14:01:15 -0800 Parents: 7ec105c4f8c0baf91c757fb7464db9ef4d1c1a75 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f85fbcbfc593828faf230bb45f83efa394fbedea Log: Fix downloads by using the right variable.. Fixes bug #66142 (Impossible to download PHP from website). Bugs: https://bugs.php.net/66142 Changed paths: M include/do-download.inc Diff: diff --git a/include/do-download.inc b/include/do-download.inc index f9d4254..bb486ee 100644 --- a/include/do-download.inc +++ b/include/do-download.inc @@ -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"); }

« previous php.webmaster (#17166) next »