Merge branch '1.9' of github.com:getgrav/grav-plugin-admin into 1.9

This commit is contained in:
Andy Miller
2018-10-01 14:06:45 -06:00

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