mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 15:05:43 +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)
|
public function overview($id, $mode)
|
||||||
{
|
{
|
||||||
$form_name = 'acp_storage';
|
$form_key = 'acp_storage';
|
||||||
add_form_key($form_name);
|
add_form_key($form_key);
|
||||||
|
|
||||||
// Template from adm/style
|
// Template from adm/style
|
||||||
$this->tpl_name = 'acp_storage';
|
$this->tpl_name = 'acp_storage';
|
||||||
@ -93,6 +93,11 @@ class acp_storage
|
|||||||
$modified_storages = [];
|
$modified_storages = [];
|
||||||
$messages = [];
|
$messages = [];
|
||||||
|
|
||||||
|
if (!check_form_key($form_key))
|
||||||
|
{
|
||||||
|
$messages[] = $this->lang->lang('FORM_INVALID');
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($this->storage_collection as $storage)
|
foreach ($this->storage_collection as $storage)
|
||||||
{
|
{
|
||||||
$storage_name = $storage->get_name();
|
$storage_name = $storage->get_name();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user