sanitize $_SERVER variables.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@8794 3d254a34-79dc-0310-9e5f-be208747d8a0
minor improvement to sanitizing stuff.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@8795 3d254a34-79dc-0310-9e5f-be208747d8a0
fixes security vulnerabilities for falsified headers
Fixes default_upload_permission to listen to the umask by default.


git-svn-id: http://svn.cmsmadesimple.org/svn/cmsmadesimple@8796 3d254a34-79dc-0310-9e5f-be208747d8a0