Don't hard code document root

This commit is contained in:
Derick Rethans
2025-06-30 16:59:20 +01:00
parent f92b11a41e
commit 6b0137dd0b

View File

@@ -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;
}