mysql_format player name
#6

Quote:
Originally Posted by AmigaBlizzard
Посмотреть сообщение
Players could choose to enter "; DROP TABLE accounts;" as their name, it would wipe your database upon logging in.
It's not a regular name you would see everyday, but it does the trick in messing up your server.
Good point, but SA-MP doesn't allow spaces, semi-colons, or singular quotes in player names, making it impossible for SQL injection to happen from that alone. Only alphanumerical characters and certain symbols ([ ], ( ), =, @, _, etc.) are allowed. Everything else inputted by players should be escaped though.
Reply


Messages In This Thread
mysql_format player name - by Aa12 - 21.02.2016, 14:22
Re: mysql_format player name - by Aa12 - 21.02.2016, 15:54
Re: mysql_format player name - by LocMax - 21.02.2016, 18:56
Re: mysql_format player name - by Chump - 21.02.2016, 19:17
Re: mysql_format player name - by AmigaBlizzard - 21.02.2016, 19:53
Re: mysql_format player name - by Chump - 21.02.2016, 19:58
Re: mysql_format player name - by Aa12 - 24.02.2016, 16:26
Re: mysql_format player name - by Aa12 - 24.02.2016, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)