Overview
Comment:Fix plugin install CSRF key
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1: f896a8268bd097b7a20865b7236d5c1f96f9d7b9
User & Date: bohwaz on 2017-09-04 07:30:57
Other Links: branch diff | manifest | tags
Context
2017-09-05
02:05
Corrections pour installation de plugin check-in: 9d0e5678d2 user: bohwaz tags: dev
2017-09-04
07:30
Fix plugin install CSRF key check-in: f896a8268b user: bohwaz tags: dev
07:07
Corrections pour les changements liés à la migration vers UserSession check-in: 4e5588b1ba user: bohwaz tags: dev
Changes

Modified src/www/admin/config/plugins.php from [bbcf5eb592] to [946c67d622].

     2      2   
     3      3   namespace Garradin;
     4      4   
     5      5   require_once __DIR__ . '/_inc.php';
     6      6   
     7      7   if (f('install'))
     8      8   {
     9         -    $form->check('install_plugins', [
            9  +    $form->check('install_plugin', [
    10     10           'plugin' => 'required',
    11     11       ]);
    12     12   
    13     13       if (!$form->hasErrors())
    14     14       {
    15     15           try {
    16     16               Plugin::install(f('to_install'), false);