From 4ff703e3691e6cb398e8d208c1f54ed61315e0e8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 10 Sep 2020 14:08:19 +0200 Subject: Plugins: do not save metadata along plugin parameters Also prevent the token to be saved. Fixes #1550 --- tests/plugins/test/test.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/plugins') diff --git a/tests/plugins/test/test.php b/tests/plugins/test/test.php index ae5032dd..03be4f4e 100644 --- a/tests/plugins/test/test.php +++ b/tests/plugins/test/test.php @@ -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]; } -- cgit v1.2.3