1
0
mirror of https://github.com/Rouji/single_php_filehost.git synced 2025-04-03 16:09:33 +00:00

Fix download link for servers not on default port

This commit is contained in:
mul91n 2021-08-14 15:31:22 +10:00
parent 68d8c33687
commit 6f579bc23f

View File

@ -173,7 +173,7 @@ function store_file($name, $tmpfile, $formatted = false)
//print the download link of the file
$url = sprintf('%s://%s/'.$DOWNLOAD_PATH,
$HTTP_PROTO,
$_SERVER["SERVER_NAME"],
$_SERVER["HTTP_HOST"],
$basename);
if ($formatted)
{