settings/get: fix information disclosure

This commit is contained in:
Roman 2024-04-23 14:29:08 +02:00
parent 51ee723dcb
commit c715dadb11

@ -57,7 +57,7 @@ namespace Core\API\Settings {
$key = $this->getParam("key"); $key = $this->getParam("key");
$sql = $this->context->getSQL(); $sql = $this->context->getSQL();
$settings = Settings::getAll($sql, $key); $settings = Settings::getAll($sql, $key, $this->isExternalCall());
if ($settings !== null) { if ($settings !== null) {
$this->result["settings"] = $settings; $this->result["settings"] = $settings;
} else { } else {