do not output potentially unsafe content, fixes GHSA-26xq-m8xw-6373
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user