settings/get: fix information disclosure
This commit is contained in:
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user