mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
SQL thingy fix, oops vol 2
This commit is contained in:
@@ -393,7 +393,10 @@ function GetApp() {
|
|||||||
app.post('/login', (req, res) => {
|
app.post('/login', (req, res) => {
|
||||||
logger.LogReq(req)
|
logger.LogReq(req)
|
||||||
const pw = req.body.pw
|
const pw = req.body.pw
|
||||||
? req.body.pw.replace("'", '').replace('"', '')
|
? req.body.pw
|
||||||
|
.replace(/'/g, '')
|
||||||
|
.replace(/"/g, '')
|
||||||
|
.replace(/;/g, '')
|
||||||
: false
|
: false
|
||||||
const cid = req.body.cid
|
const cid = req.body.cid
|
||||||
const isScript = req.body.script
|
const isScript = req.body.script
|
||||||
|
Reference in New Issue
Block a user