Fix bug where BNF IDs where validated too easily
This commit is contained in:
2 files changed
+32
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user