Added missing @self@ variant check to task filesUpload

This commit is contained in:
Matias Griese
2018-10-01 21:42:20 +03:00
parent fc66ea2837
commit fec2112f72

View File

@@ -250,7 +250,7 @@ class AdminBaseController
}
// 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 = [
'status' => 'error',
'message' => sprintf($this->admin->translate('PLUGIN_ADMIN.FILEUPLOAD_PREVENT_SELF', null),