| 
	
 | 
 Posted by ashore on 10/09/07 00:06 
Guys, I'm adapting the ..._deep() approach to apply it to $_GET  and/ 
or $_POST arrays as follows, as a lazy way to cleanup input before 
posting it to the database - to prevent SQL injections. 
 
	function quote_smart_deep($value) {		// recursive array-capable 
version of quote_smart 
	    $value = is_array($value) ? array_map('quote_smart_deep', 
$value) : quote_smart($value); 
	    return $value; 
		} 
 
Anyone see any reason for this not to work?  Thanks, all. 
 
-AS
 
  
Navigation:
[Reply to this message] 
 |