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 /application/front/controller/admin | |
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 'application/front/controller/admin')
-rw-r--r-- | application/front/controller/admin/PluginsController.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/application/front/controller/admin/PluginsController.php b/application/front/controller/admin/PluginsController.php index 0e09116e..8e059681 100644 --- a/application/front/controller/admin/PluginsController.php +++ b/application/front/controller/admin/PluginsController.php | |||
@@ -62,6 +62,7 @@ class PluginsController extends ShaarliAdminController | |||
62 | 62 | ||
63 | if (isset($parameters['parameters_form'])) { | 63 | if (isset($parameters['parameters_form'])) { |
64 | unset($parameters['parameters_form']); | 64 | unset($parameters['parameters_form']); |
65 | unset($parameters['token']); | ||
65 | foreach ($parameters as $param => $value) { | 66 | foreach ($parameters as $param => $value) { |
66 | $this->container->conf->set('plugins.'. $param, escape($value)); | 67 | $this->container->conf->set('plugins.'. $param, escape($value)); |
67 | } | 68 | } |