mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 00:15:34 +00:00
- check if userfile is set at all
This commit is contained in:
parent
f0dfa127a5
commit
2cd0f8aca0
|
@ -88,7 +88,7 @@ if ($user->getEmail() != $email)
|
||||||
if ($user->getComment() != $comment)
|
if ($user->getComment() != $comment)
|
||||||
$user->setComment($comment);
|
$user->setComment($comment);
|
||||||
|
|
||||||
if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']==0)
|
if (isset($_FILES["userfile"]) && is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["size"] > 0 && $_FILES['userfile']['error']==0)
|
||||||
{
|
{
|
||||||
$lastDotIndex = strrpos(basename($_FILES["userfile"]["name"]), ".");
|
$lastDotIndex = strrpos(basename($_FILES["userfile"]["name"]), ".");
|
||||||
$fileType = substr($_FILES["userfile"]["name"], $lastDotIndex);
|
$fileType = substr($_FILES["userfile"]["name"], $lastDotIndex);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user