remove servername sanitizer

This commit is contained in:
2023-04-25 16:36:12 +02:00
parent bd023aac45
commit 7e137ee0f4
+2 -1
View File
@@ -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)