mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
[ticket/11103] UCP Notifications Options Form Key
PHPBB3-11103
This commit is contained in:
@@ -23,6 +23,8 @@ class ucp_notifications
|
||||
{
|
||||
global $phpbb_container;
|
||||
|
||||
add_form_key('ucp_notification_options');
|
||||
|
||||
$phpbb_notifications = $phpbb_container->get('notifications');
|
||||
$template = $phpbb_container->get('template');
|
||||
$user = $phpbb_container->get('user');
|
||||
@@ -33,6 +35,11 @@ class ucp_notifications
|
||||
// Add/remove subscriptions
|
||||
if ($request->is_set_post('submit'))
|
||||
{
|
||||
if (!check_form_key('ucp_notification_options'))
|
||||
{
|
||||
trigger_error('FORM_INVALID');
|
||||
}
|
||||
|
||||
$notification_methods = $phpbb_notifications->get_subscription_methods();
|
||||
|
||||
foreach($phpbb_notifications->get_subscription_types() as $type => $data)
|
||||
|
Reference in New Issue
Block a user