Fix bug where BNF IDs where validated too easily
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user