From 503f5e7272e55cdd0a814d9ccebebda4d51d17a7 Mon Sep 17 00:00:00 2001 From: Rouji Date: Sun, 29 Aug 2021 22:40:26 +0200 Subject: [PATCH] use SERVER_NAME for uploader config names --- index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index aaf6fdb..89fd7df 100755 --- a/index.php +++ b/index.php @@ -248,12 +248,12 @@ function purge_files() // send a ShareX custom uploader config as .json function send_sharex_config() { - $host = $_SERVER["HTTP_HOST"]; + $name = $_SERVER["SERVER_NAME"]; $site_url = CONFIG::SITE_URL(); - $filename = $host.".sxcu"; + $filename = $name.".sxcu"; $content = <<