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 {