Posts: 86
Threads: 37
Joined: Jan 2016
Reputation:
0
Hi,
If player input that text for ex:
asdqwe\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\
It's will be escaped?
Posts: 731
Threads: 29
Joined: Feb 2012
Reputation:
0
Do you know what Escape really does and when you have to use it?
Posts: 86
Threads: 37
Joined: Jan 2016
Reputation:
0
It prevents for sql injection, for all text that player can write i gues?
Posts: 731
Threads: 29
Joined: Feb 2012
Reputation:
0
The problem is, how it does it? And yes, it will escape perfectly.
Posts: 86
Threads: 37
Joined: Jan 2016
Reputation:
0
I don't know how maybe in where queries
Posts: 86
Threads: 37
Joined: Jan 2016
Reputation:
0
23.02.2016, 13:25
(
Последний раз редактировалось CSCripMa; 23.02.2016 в 14:07.
)
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 );