This commit is contained in:
nitowa
2022-04-09 15:30:14 +02:00
parent cf3ed4e456
commit 6510137042
+1 -1
View File
@@ -30,7 +30,7 @@ On the server, checks are performed to make sure the values are safe, but the ch
const { type, program } = req.body;
if (
typeof type !== "string"
|| type.match(/^[a-zA-Z\-/]{3,}$/) === null //<-- Any Alphanumeric(plus dashes) string with length >= 3
|| type.match(/^[a-zA-Z\-/]{3,}$/) === null //<-- Any Alphanumeric(plus dashes and slashes) string with length >= 3
|| typeof program.name !== "string"
|| typeof program.code !== "string"
|| program.code.length > 10000