/ Published in: PHP
URL: http://www.six-degrees.com/six-degrees.html
Feel free to use any way you want. This function will take user submitted data and make sure it is free of XSS attacks and also decode Ajax submitted data if the flag is set to true, now with a conditional check for magic quotes.
Expand |
Embed | Plain Text
function cleanData($data, $isUrlEncoded=FALSE) { } return ($isUrlEncoded) ? } else { return ($isUrlEncoded) ? $data; } };
You need to login to post a comment.
