remove servername sanitizer
This commit is contained in:
@@ -131,7 +131,8 @@ router.post(
|
|||||||
min: 0
|
min: 0
|
||||||
}),
|
}),
|
||||||
body(['cause_of_death', 'victim_id'], 'mandatory').exists().notEmpty(),
|
body(['cause_of_death', 'victim_id'], 'mandatory').exists().notEmpty(),
|
||||||
body('servername').customSanitizer(e => e.replace(/[^a-z0-9]/gi, '')),
|
//do we need this ?
|
||||||
|
//body('servername').customSanitizer(e => e.replace(/[^a-z0-9]/gi, '')),
|
||||||
validateErrors,
|
validateErrors,
|
||||||
async (req, res) => {
|
async (req, res) => {
|
||||||
if (!req.headers.authorization) return res.sendStatus(403)
|
if (!req.headers.authorization) return res.sendStatus(403)
|
||||||
|
|||||||
Reference in New Issue
Block a user