mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-11 16:35:38 +00:00
- do not use sanitizeString() anymore
This commit is contained in:
parent
89a29fcd29
commit
66c9846ced
|
@ -53,8 +53,8 @@ if (is_uploaded_file($_FILES["userfile"]["tmp_name"]) && $_FILES["userfile"]["si
|
|||
|
||||
$comment = $_POST["comment"];
|
||||
$userfiletmp = $_FILES["userfile"]["tmp_name"];
|
||||
$userfiletype = sanitizeString($_FILES["userfile"]["type"]);
|
||||
$userfilename = sanitizeString($_FILES["userfile"]["name"]);
|
||||
$userfiletype = $_FILES["userfile"]["type"];
|
||||
$userfilename = $_FILES["userfile"]["name"];
|
||||
|
||||
$lastDotIndex = strrpos(basename($userfilename), ".");
|
||||
if (is_bool($lastDotIndex) && !$lastDotIndex)
|
||||
|
|
Loading…
Reference in New Issue
Block a user