take out debug echo statement (Bug #125)

This commit is contained in:
Uwe Steinmann 2014-02-21 21:29:52 +01:00
parent 3b90e1803b
commit e9355c37af

View File

@ -100,7 +100,7 @@ if ($user->getTheme() != $mytheme)
if (isset($_FILES["userfile"]) && is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']==0)
{
$finfo = new finfo(FILEINFO_MIME);
echo $finfo->file($_FILES["userfile"]["tmp_name"]);
// echo $finfo->file($_FILES["userfile"]["tmp_name"]);
if(substr($finfo->file($_FILES["userfile"]["tmp_name"]), 0, 10) != "image/jpeg") {;
UI::exitError(getMLText("user_info"),getMLText("only_jpg_user_images"));
}