I've created a CMS system that grabs website source code from FTP addresses and uploads it to the current server. The issue with this is I don't want to be uploading dangerous code that can control my server.
Is there any tried and tested functions that already exist to filter PHP code for malicious code?
Thanks in advance.