Explicit check for api domain instead of short domain.

This commit is contained in:
flash 2022-01-28 00:31:08 +00:00
parent a6ef98210c
commit da3562544f
2 changed files with 1 additions and 1 deletions

0
.debug
View file

View file

@ -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;