Jump to content

securing $_get, $_post


localhost

Recommended Posts

i know you said you wanted to refrain from using add/stripslashes, but this is what i use, and it's been okay thusfar:
[code]
function clean_var($value){
  if (get_magic_quotes_gpc()) { stripslashes($value); }
  if (!is_numeric($value)) { mysql_real_escape_string($value); }   
  return $value;
}
[/code]
Link to comment
https://forums.phpfreaks.com/topic/25406-securing-_get-_post/#findComment-115884
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.