Escaping issues - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Escaping issues (
/showthread.php?tid=601572)
Escaping issues -
CSCripMa - 23.02.2016
Hi,
If player input that text for ex:
asdqwe\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\
It's will be escaped?
Re: Escaping issues -
]Rafaellos[ - 23.02.2016
Do you know what Escape really does and when you have to use it?
Re: Escaping issues -
CSCripMa - 23.02.2016
It prevents for sql injection, for all text that player can write i gues?
Re: Escaping issues -
]Rafaellos[ - 23.02.2016
The problem is, how it does it? And yes, it will escape perfectly.
Re: Escaping issues -
CSCripMa - 23.02.2016
I don't know how maybe in where queries
Re: Escaping issues -
CSCripMa - 23.02.2016
but real question do i need escape or no? i mean text like player messages which player write to other player PM
Ex:
Update table SET PM1='%s',PM2='%s' WHERE name='%s'", PMFIRST[ playerid ], PMSECOND[ playerid ], Name );