Decrease target limit to 1023

This commit is contained in:
poeti8 2019-10-05 16:38:52 +03:30
parent b1186ca8cb
commit 1f50d1053e
1 changed files with 2 additions and 2 deletions

View File

@ -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