mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 10:56:08 +01:00
Added missing @self@ variant check to task filesUpload
This commit is contained in:
@@ -250,7 +250,7 @@ class AdminBaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do not use self@ outside of pages
|
// Do not use self@ outside of pages
|
||||||
if ($this->view !== 'pages' && in_array($settings->destination, ['@self', 'self@'])) {
|
if ($this->view !== 'pages' && in_array($settings->destination, ['@self', 'self@', '@self@'])) {
|
||||||
$this->admin->json_response = [
|
$this->admin->json_response = [
|
||||||
'status' => 'error',
|
'status' => 'error',
|
||||||
'message' => sprintf($this->admin->translate('PLUGIN_ADMIN.FILEUPLOAD_PREVENT_SELF', null),
|
'message' => sprintf($this->admin->translate('PLUGIN_ADMIN.FILEUPLOAD_PREVENT_SELF', null),
|
||||||
|
|||||||
Reference in New Issue
Block a user