PHP: How to mass replace $_POST[…] with strip_tags($_POST[…])

Lottexteksjet

New Member
I'm currently recovering from a nasty XSS attack, and realized I never sanitized inputs on several of the forms on my site. I used Notepad++'s Find In Files feature to search for \[code\]$_POST\[/code\] in all my PHP files, and got almost 5,000 results. Now, I really don't want to go and manually add \[code\]strip_tags\[/code\] to every one of those results, but a replace-all wouldn't do the trick... and I'm a total noob when it comes to things like regular expressions.Is there any way to make this a little less tedious?
 
Back
Top