Plugins: do not save metadata along plugin parameters

Also prevent the token to be saved.

Fixes 
This commit is contained in:
ArthurHoaro 2020-09-10 14:08:19 +02:00
parent e2dff28b44
commit 4ff703e369
5 changed files with 50 additions and 30 deletions
tests/plugins/test

View file

@ -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];
}