Decrease target limit to 1023
This commit is contained in:
parent
b1186ca8cb
commit
1f50d1053e
|
@ -72,8 +72,8 @@ export const validateUrl: RequestHandler = async (req, res, next) => {
|
|||
return res.status(400).json({ error: "No target has been provided." });
|
||||
|
||||
// validate URL length
|
||||
if (req.body.target.length > 3000) {
|
||||
return res.status(400).json({ error: "Maximum URL length is 3000." });
|
||||
if (req.body.target.length > 1023) {
|
||||
return res.status(400).json({ error: "Maximum URL length is 1023." });
|
||||
}
|
||||
|
||||
// Validate URL
|
||||
|
|
Loading…
Reference in New Issue