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

#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: 2 Guest(s)