Screenshots/Upload

* use fileInfo to determine the filetype (getimagesize fails if the file is not an actual image)
This commit is contained in:
Sarjuuk
2016-04-08 21:14:28 +02:00
parent bb87762467
commit 770f11321f
3 changed files with 10 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ define('AOWOW_REVISION', 19);
define('CLI', PHP_SAPI === 'cli');
$reqExt = ['SimpleXML', 'gd', 'mysqli', 'mbstring'];
$reqExt = ['SimpleXML', 'gd', 'mysqli', 'mbstring', 'fileinfo'];
$error = '';
foreach ($reqExt as $r)
if (!extension_loaded($r))