I wrote a wordpress plugin but wordpress.org rejected it due to sanitization. According to wordpress:
"## Please sanitize your POST calls
You are not properly sanitizing your POST/GET/REQUEST calls.
All instances where $_POST data is inserted into the database, or into a file, MUST be properly sanitized for security. This also holds true for $_REQUEST calls that are processed. In addition, by sanitizing your POST data, you will lessen the possibility of XSS vulnerabilities.
Using stripslashes is not enough, you need to use the Input Validation methods, or things similar, to protect your plugin. The ultimate goal is that you should ensure that invalid data is NEVER processed."
Can some help me here to add one filter code which can sanitize all my $_POST requests, or any other way?
Thanks!