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:
parent
5c4a5f8045
commit
3a7c3f0b54
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue