SQL thingy fix, oops vol 2

This commit is contained in:
mrfry 2020-10-12 17:41:28 +02:00
parent 5c4a5f8045
commit 3a7c3f0b54

View file

@ -393,7 +393,10 @@ function GetApp() {
app.post('/login', (req, res) => {
logger.LogReq(req)
const pw = req.body.pw
? req.body.pw.replace("'", '').replace('"', '')
? req.body.pw
.replace(/'/g, '')
.replace(/"/g, '')
.replace(/;/g, '')
: false
const cid = req.body.cid
const isScript = req.body.script