mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-08 18:05:17 +02:00
[ticket/15289] Check form
PHPBB3-15289
This commit is contained in:
parent
036ae01b82
commit
11f13e21ac
@ -79,8 +79,8 @@ class acp_storage
|
||||
|
||||
public function overview($id, $mode)
|
||||
{
|
||||
$form_name = 'acp_storage';
|
||||
add_form_key($form_name);
|
||||
$form_key = 'acp_storage';
|
||||
add_form_key($form_key);
|
||||
|
||||
// Template from adm/style
|
||||
$this->tpl_name = 'acp_storage';
|
||||
@ -93,6 +93,11 @@ class acp_storage
|
||||
$modified_storages = [];
|
||||
$messages = [];
|
||||
|
||||
if (!check_form_key($form_key))
|
||||
{
|
||||
$messages[] = $this->lang->lang('FORM_INVALID');
|
||||
}
|
||||
|
||||
foreach ($this->storage_collection as $storage)
|
||||
{
|
||||
$storage_name = $storage->get_name();
|
||||
|
Loading…
x
Reference in New Issue
Block a user