Skip to content

Commit fde43f8

Browse files
committed
do not output potentially unsafe content, fixes GHSA-26xq-m8xw-6373
Signed-off-by: Michael Kaufmann <[email protected]>
1 parent a43d53d commit fde43f8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Froxlor/Api/Commands/SubDomains.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,7 @@ public function get()
503503
$this->logger()->logAction($this->isAdmin() ? FroxlorLogger::ADM_ACTION : FroxlorLogger::USR_ACTION, LOG_INFO, "[API] get subdomain '" . $result['domain'] . "'");
504504
return $this->response($result);
505505
}
506-
$key = ($id > 0 ? "id #" . $id : "domainname '" . $domainname . "'");
507-
throw new Exception("Subdomain with " . $key . " could not be found", 404);
506+
throw new Exception("Requested subdomain could not be found", 404);
508507
}
509508

510509
private function getHasCertValueForDomain(int $domainid, int $parentdomainid): int

0 commit comments

Comments
 (0)