mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
take out debug echo statement (Bug #125)
This commit is contained in:
parent
3b90e1803b
commit
e9355c37af
|
@ -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"));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user