Prepare for new release

This commit is contained in:
Danang Probo Sayekti 2015-07-10 13:09:56 +07:00
commit c3c56d293e
4 changed files with 3 additions and 4 deletions

View file

@ -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 {