mirror of
https://github.com/php/web-pecl.git
synced 2026-03-23 23:02:08 +01:00
Don't hard code document root
This commit is contained in:
@@ -540,7 +540,7 @@ class Release
|
||||
|
||||
header('Content-Disposition: attachment;filename=' . $basename);
|
||||
header('Content-type: application/octet-stream');
|
||||
header('X-Sendfile: ' . '/local/www/sites/pecl.php.net/public_html/packages/' . $basename);
|
||||
header('X-Sendfile: ' . $_SERVER['CONTEXT_DOCUMENT_ROOT'] . '/packages/' . $basename);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user