mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 19:36:08 +01:00
Fix DirectInstall not working #1535
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
* Removed duplicate lang strings
|
* Removed duplicate lang strings
|
||||||
1. [](#bugfix)
|
1. [](#bugfix)
|
||||||
* Fix XSS checking when empty content [#1533](https://github.com/getgrav/grav-plugin-admin/issues/1533)
|
* 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
|
# v1.8.11
|
||||||
## 10/08/2018
|
## 10/08/2018
|
||||||
|
|||||||
@@ -2288,7 +2288,7 @@ class AdminController extends AdminBaseController
|
|||||||
$file_path = $_FILES['uploaded_file']['tmp_name'];
|
$file_path = $_FILES['uploaded_file']['tmp_name'];
|
||||||
|
|
||||||
// Handle bad filenames.
|
// Handle bad filenames.
|
||||||
if (!Utils::checkFilename($file_path)) {
|
if (!Utils::checkFilename(basename($file_path))) {
|
||||||
$this->admin->json_response = [
|
$this->admin->json_response = [
|
||||||
'status' => 'error',
|
'status' => 'error',
|
||||||
'message' => $this->admin->translate('PLUGIN_ADMIN.UNKNOWN_ERRORS')
|
'message' => $this->admin->translate('PLUGIN_ADMIN.UNKNOWN_ERRORS')
|
||||||
|
|||||||
Reference in New Issue
Block a user