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:
parent
68d8c33687
commit
6f579bc23f
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user