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

@@ -6,6 +6,7 @@
* Removed duplicate lang strings
1. [](#bugfix)
* Fix XSS checking when empty content [#1533](https://github.com/getgrav/grav-plugin-admin/issues/1533)
* Fix DirectInstall not working [#1535](https://github.com/getgrav/grav-plugin-admin/issues/1535)
# v1.8.11
## 10/08/2018

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')