From 6f579bc23ffe28596c3a7061e19b92201d09431c Mon Sep 17 00:00:00 2001 From: mul91n Date: Sat, 14 Aug 2021 15:31:22 +1000 Subject: [PATCH] Fix download link for servers not on default port --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 3dc070a..ac0773a 100755 --- a/index.php +++ b/index.php @@ -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) {