mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 11:26:04 +01:00
Fix DirectInstall not working #1535
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user