Fix bug where BNF IDs where validated too easily

This commit is contained in:
2026-07-15 09:41:21 +02:00
parent ce2f60d79d
commit ef8a8b65fb
2 changed files with 32 additions and 2 deletions
+1 -1
View File
@@ -782,7 +782,7 @@ enum MDNodaRepository implements MDValueEnumInterface, JsonSerializable {
}
else $id = self::validateNumericId($id, ["https://catalogue.bnf.fr/ark:/12148/cb"]);
if ($id === false) {
if ($id === false || strlen($id) < 6) {
return false;
}