Explicit check for api domain instead of short domain.
This commit is contained in:
parent
a6ef98210c
commit
da3562544f
2 changed files with 1 additions and 1 deletions
0
.debug
0
.debug
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue