Jump to content

Recommended Posts

might want to strip out XSS code. try this

<?php
function clean($var){
  $var = trim(strip_tags(mysql_real_escape_string($var)));
  $var = htmlspecialchars($var,ENT_QUOTES);
}

array_walk_recursive($_POST,'clean');

//array_walk($_POST,'clean');// PHP 4 output
?>

Link to comment
https://forums.phpfreaks.com/topic/136680-my-site/#findComment-713781
Share on other sites

might want to strip out XSS code. try this

<?php
function clean($var){
  $var = trim(strip_tags(mysql_real_escape_string($var)));
  $var = htmlspecialchars($var,ENT_QUOTES);
}

array_walk_recursive($_POST,'clean');

//array_walk($_POST,'clean');// PHP 4 output
?>

 

Yeah i downloaded the log from the database and noticed a few ill do that in abit.

Link to comment
https://forums.phpfreaks.com/topic/136680-my-site/#findComment-713791
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.