cvs: phpweb / get_download.php

From: Date: Mon, 03 Feb 2003 20:44:19 +0000
Subject: cvs: phpweb / get_download.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-15458@lists.php.net to get a copy of this message
goba Mon Feb 3 15:44:19 2003 EDT Modified files: /phpweb get_download.php Log: Make this work, even if included (distributions is not relative to the script) Index: phpweb/get_download.php diff -u phpweb/get_download.php:1.6 phpweb/get_download.php:1.7 --- phpweb/get_download.php:1.6 Sun Jan 5 13:04:59 2003 +++ phpweb/get_download.php Mon Feb 3 15:44:19 2003 @@ -6,7 +6,7 @@ header("Pragma: no-cache"); // If there is no such file, then drop out an invalid file error message -if (!isset($df) || !file_exists('distributions/' . $df)) { +if (!isset($df) || !file_exists($DOCUMENT_ROOT . '/distributions/' . $df)) { exit('Invalid file requested for download!'); }

« previous php.mirrors (#15458) next »