1
0
mirror of https://github.com/Rouji/single_php_filehost.git synced 2025-04-04 16:39:34 +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 //print the download link of the file
$url = sprintf('%s://%s/'.$DOWNLOAD_PATH, $url = sprintf('%s://%s/'.$DOWNLOAD_PATH,
$HTTP_PROTO, $HTTP_PROTO,
$_SERVER["SERVER_NAME"], $_SERVER["HTTP_HOST"],
$basename); $basename);
if ($formatted) if ($formatted)
{ {