mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/11103] UCP Notifications Options Form Key
PHPBB3-11103
This commit is contained in:
parent
ba7289b9d2
commit
07616bfa92
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,8 @@ class ucp_notifications
|
||||||
{
|
{
|
||||||
global $phpbb_container;
|
global $phpbb_container;
|
||||||
|
|
||||||
|
add_form_key('ucp_notification_options');
|
||||||
|
|
||||||
$phpbb_notifications = $phpbb_container->get('notifications');
|
$phpbb_notifications = $phpbb_container->get('notifications');
|
||||||
$template = $phpbb_container->get('template');
|
$template = $phpbb_container->get('template');
|
||||||
$user = $phpbb_container->get('user');
|
$user = $phpbb_container->get('user');
|
||||||
|
@ -33,6 +35,11 @@ class ucp_notifications
|
||||||
// Add/remove subscriptions
|
// Add/remove subscriptions
|
||||||
if ($request->is_set_post('submit'))
|
if ($request->is_set_post('submit'))
|
||||||
{
|
{
|
||||||
|
if (!check_form_key('ucp_notification_options'))
|
||||||
|
{
|
||||||
|
trigger_error('FORM_INVALID');
|
||||||
|
}
|
||||||
|
|
||||||
$notification_methods = $phpbb_notifications->get_subscription_methods();
|
$notification_methods = $phpbb_notifications->get_subscription_methods();
|
||||||
|
|
||||||
foreach($phpbb_notifications->get_subscription_types() as $type => $data)
|
foreach($phpbb_notifications->get_subscription_types() as $type => $data)
|
||||||
|
|
Loading…
Add table
Reference in a new issue