mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-10 21:47:02 +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;
|
||||
|
||||
if (userID == undefined || userName == undefined || userID === "undefined") {
|
||||
if (userID == undefined || userName == undefined || userID === "undefined" || username.length > 50) {
|
||||
//invalid request
|
||||
res.sendStatus(400);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user