Fix DirectInstall not working #1535

This commit is contained in:
Andy Miller
2018-10-24 15:49:16 -06:00
parent 6e7b9e4214
commit d885da14fc
2 changed files with 2 additions and 1 deletions

View File

@@ -2288,7 +2288,7 @@ class AdminController extends AdminBaseController
$file_path = $_FILES['uploaded_file']['tmp_name'];
// Handle bad filenames.
if (!Utils::checkFilename($file_path)) {
if (!Utils::checkFilename(basename($file_path))) {
$this->admin->json_response = [
'status' => 'error',
'message' => $this->admin->translate('PLUGIN_ADMIN.UNKNOWN_ERRORS')