Fix mime-type security issue identified by Brad Griffith. Also make finfo() code work better if PHP 5.3.0 or greater is used.
Fix mime-type security issue identified by Brad Griffith. Also make finfo() code work better if PHP 5.3.0 or greater is used.

svn commit r52980

silverorange/swat,silverorange/swat