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
application/front/controller/admin
|
@ -62,6 +62,7 @@ class PluginsController extends ShaarliAdminController
|
|||
|
||||
if (isset($parameters['parameters_form'])) {
|
||||
unset($parameters['parameters_form']);
|
||||
unset($parameters['token']);
|
||||
foreach ($parameters as $param => $value) {
|
||||
$this->container->conf->set('plugins.'. $param, escape($value));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue