Compare commits

..

3 Commits

5 changed files with 7 additions and 5 deletions

@ -1 +1 @@
Subproject commit 1dedb86d5b6d351e776261b673896452c23b21e1
Subproject commit dc1c72aeda6d273272e3a5cbd53bc242ae8acd3d

@ -1 +1 @@
Subproject commit 74582bcca22520b746da4d57da6f48d4fdda7650
Subproject commit b1d25b494175e79d5f33f7a65a45767195c997f9

@ -1 +1 @@
Subproject commit 2176e7312b224d23e9e728011294f06fab7b1380
Subproject commit bce4268a70044926f73137f7287063b5fd22971e

@ -1 +1 @@
Subproject commit 3cfd5a7d29ab85aff75a1d985bae8f5a5cf5e322
Subproject commit cdcfae2472f34130ce9a1f53823ebf55c8f3f53b

View File

@ -69,7 +69,9 @@ function mdShortenerExceptionHandler(Throwable $exception):void {
$errorReporter = new MDErrorReporter("md:frontend", "bugs-frontend@museum-digital.de");
$errorCategory = MDErrorReporter::categorizeError($exception);
http_response_code(404);
if (headers_sent() === false) {
http_response_code(404);
}
switch ($errorCategory) {
case MDErrorReporter::MD_ERROR_KNOWN: