Update library/media/class.media.lib.php

Add a mime type verification for uploaded files to prevent code execution through this file
Merge pull request #1 from freelancer37/patch-1

Update library/media/class.media.lib.php