Fix bug where BNF IDs where validated too easily

This commit is contained in:
jrenslin committed 2026-07-15 09:41:21 +02:00
1 parent ce2f60d79d
commit ef8a8b65fb
2 files changed
+32 -2

No files matched your search

+1 -1
View File
@@ -782,7 +782,7 @@ public static function validateBnfId(string $id):string|false {
}
else $id = self::validateNumericId($id, ["https://catalogue.bnf.fr/ark:/12148/cb"]);
if ($id === false) {
if ($id === false || strlen($id) < 6) {
return false;
}