Added length limit for data in UUID field (#127)

Co-authored-by: Adam Bem <adam.bem@zoho.eu>
Reviewed-on: #127
This commit is contained in:
2023-03-22 13:27:49 +01:00
parent 13d51c05d8
commit 19de505ca4

View File

@@ -281,6 +281,8 @@ async function fetchUUIDCheck(givenUUID , strategy){
function checkUUIDChars(uuid) {
uuid.replace(/ /g,'')
if (uuid.length > 128)
return "invalid";
console.log("UUID in check: " + uuid);
const regex = new RegExp("^[A-z0-9-]+$");