diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-10 14:08:19 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-09-12 13:29:34 +0200 |
commit | 4ff703e3691e6cb398e8d208c1f54ed61315e0e8 (patch) | |
tree | dc70aab63e4b5c0ff88736cec065eed60c94d7d2 /tests/plugins/test/test.php | |
parent | e2dff28b44fafcf11a1db7985c50cd40e6945821 (diff) | |
download | Shaarli-4ff703e3691e6cb398e8d208c1f54ed61315e0e8.tar.gz Shaarli-4ff703e3691e6cb398e8d208c1f54ed61315e0e8.tar.zst Shaarli-4ff703e3691e6cb398e8d208c1f54ed61315e0e8.zip |
Plugins: do not save metadata along plugin parameters
Also prevent the token to be saved.
Fixes #1550
Diffstat (limited to 'tests/plugins/test/test.php')
-rw-r--r-- | tests/plugins/test/test.php | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
13 | $data[1] = 'page test'; | 13 | $data[1] = 'page test'; |
14 | } elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) { | 14 | } elseif (isset($data['_LOGGEDIN_']) && $data['_LOGGEDIN_'] === true) { |
15 | $data[1] = 'loggedin'; | 15 | $data[1] = 'loggedin'; |
16 | } elseif (array_key_exists('_LOGGEDIN_', $data)) { | ||
17 | $data[1] = 'loggedin'; | ||
18 | $data[2] = $data['_LOGGEDIN_']; | ||
16 | } else { | 19 | } else { |
17 | $data[1] = $data[0]; | 20 | $data[1] = $data[0]; |
18 | } | 21 | } |