Prevent using general URL field in MDNodaRepository::fromUrl()

This commit is contained in:
Joshua Ramon Enslin 2024-11-28 09:28:43 +01:00
parent 7fc57353a8
commit f938c66ab6
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -118,6 +118,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
$cases = self::cases(); $cases = self::cases();
foreach ($cases as $case) { foreach ($cases as $case) {
if ($case === self::allgemein) continue;
$output = $case->validateId($input); $output = $case->validateId($input);
if ($output !== false) return $case; if ($output !== false) return $case;