do not output potentially unsafe content, fixes GHSA-26xq-m8xw-6373

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2025-01-12 10:27:44 +01:00
parent a43d53d540
commit fde43f8060

View File

@@ -503,8 +503,7 @@ class SubDomains extends ApiCommand implements ResourceEntity
$this->logger()->logAction($this->isAdmin() ? FroxlorLogger::ADM_ACTION : FroxlorLogger::USR_ACTION, LOG_INFO, "[API] get subdomain '" . $result['domain'] . "'");
return $this->response($result);
}
$key = ($id > 0 ? "id #" . $id : "domainname '" . $domainname . "'");
throw new Exception("Subdomain with " . $key . " could not be found", 404);
throw new Exception("Requested subdomain could not be found", 404);
}
private function getHasCertValueForDomain(int $domainid, int $parentdomainid): int