mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-16 16:37:12 +03:00
set limit of 64 characters for lookup
This commit is contained in:
@@ -5,7 +5,7 @@ import {Request, Response} from 'express';
|
||||
export async function getUserID(req: Request, res: Response) {
|
||||
let username = req.query.username as string;
|
||||
|
||||
if (username == undefined) {
|
||||
if (username == undefined || username.length > 64) {
|
||||
//invalid request
|
||||
res.sendStatus(400);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user