Backend Development

Protection of PHP sites - processing of incoming data

Submitted by 0-Day, , Thread ID: 18949

Thread Closed

RE: Protection of PHP sites - processing of incoming data

kara
Junior Member
Supreme
Level:
0
Reputation:
12
Posts:
95
Likes:
19
Credits:
168
03-03-2016, 04:24 AM
#7
Dumb advice. Don't tell people to use deprecated functions.

Avoiding 1st order SQLi: http://pastebin.com/zbk1A7e8 (Sucuri blocks it)

Avoiding XSS:
Code:
function escape($string = '')
{
    return htmlspecialchars($string, ENT_QUOTE, 'UTF-8');
}

Users browsing this thread: 1 Guest(s)