Plugins: do not save metadata along plugin parameters
Also prevent the token to be saved. Fixes #1550
This commit is contained in:
parent
e2dff28b44
commit
4ff703e369
5 changed files with 50 additions and 30 deletions
tests/plugins/test
|
@ -13,6 +13,9 @@ function hook_test_random($data)
|
|||
$data[1] = 'page test';
|
||||
} elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) {
|
||||
$data[1] = 'loggedin';
|
||||
} elseif (array_key_exists('_LOGGEDIN_', $data)) {
|
||||
$data[1] = 'loggedin';
|
||||
$data[2] = $data['_LOGGEDIN_'];
|
||||
} else {
|
||||
$data[1] = $data[0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue