From da3562544fa2740c8b1e5aa14cf8e7634d6ac9ae Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 28 Jan 2022 00:31:08 +0000 Subject: [PATCH] Explicit check for api domain instead of short domain. --- .debug | 0 public/index.php | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 .debug diff --git a/.debug b/.debug deleted file mode 100644 index e69de29..0000000 diff --git a/public/index.php b/public/index.php index bee0796..031c8a1 100644 --- a/public/index.php +++ b/public/index.php @@ -33,7 +33,7 @@ function eepromByteSymbol(int $bytes, bool $decimal = true, array $symbols = ['' return sprintf("%.2f %s%sB", $bytes, $symbol, $symbol !== '' && !$decimal ? 'i' : ''); } -if($_SERVER['HTTP_HOST'] === Config::get('Uploads', 'short_domain')) { +if($_SERVER['HTTP_HOST'] !== Config::get('Uploads', 'api_domain')) { $reqMethod = 'GET'; // short domain is read only, prevent deleting $reqPath = '/uploads/' . trim($reqPath, '/'); $isShortDomain = true;