mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15289] Check form
PHPBB3-15289
This commit is contained in:
parent
036ae01b82
commit
11f13e21ac
1 changed files with 7 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue