mirror of
https://github.com/danpros/htmly.git
synced 2026-04-18 19:46:21 +05:30
Prepare for new release
This commit is contained in:
parent
7cd94d0acc
commit
c3c56d293e
4 changed files with 3 additions and 4 deletions
|
|
@ -31,7 +31,7 @@ if (login()) {
|
|||
|
||||
if($check !== false) {
|
||||
if ($error === UPLOAD_ERR_OK) {
|
||||
$extension = pathinfo($timestamp . '-' . $name, PATHINFO_EXTENSION);
|
||||
$extension = pathinfo($name, PATHINFO_EXTENSION);
|
||||
if (!in_array($extension, $whitelist)) {
|
||||
$error = 'Invalid file type uploaded.';
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue