mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 13:37:01 +03:00
Add username length limit
This commit is contained in:
@@ -12,7 +12,7 @@ module.exports = function setUsername(req, res) {
|
|||||||
|
|
||||||
let adminUserIDInput = req.query.adminUserID;
|
let adminUserIDInput = req.query.adminUserID;
|
||||||
|
|
||||||
if (userID == undefined || userName == undefined || userID === "undefined") {
|
if (userID == undefined || userName == undefined || userID === "undefined" || username.length > 50) {
|
||||||
//invalid request
|
//invalid request
|
||||||
res.sendStatus(400);
|
res.sendStatus(400);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user