optimusprime
08.Aralık.2014, 22:01
PHP XSS Açığı İçin Uygulanabilecek Fonksiyon
PHP- Kodu:
function G_filter($text) {
if ( is_array($text) ) {
$text = array_map('G_filter', $text);
} else {
if ( get_magic_quotes_gpc() ) {
$text = htmlspecialchars(stripcslashes(trim($text)),ENT_QU OTES);
} else {
PHP- Kodu:
function G_filter($text) {
if ( is_array($text) ) {
$text = array_map('G_filter', $text);
} else {
if ( get_magic_quotes_gpc() ) {
$text = htmlspecialchars(stripcslashes(trim($text)),ENT_QU OTES);
} else {