mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
fixes #2519 prevent CSRF on album notification form
This commit is contained in:
@@ -33,6 +33,7 @@ $page['cat'] = $category['id'];
|
|||||||
// info by email to an access granted group of category informations
|
// info by email to an access granted group of category informations
|
||||||
if (isset($_POST['submitEmail']))
|
if (isset($_POST['submitEmail']))
|
||||||
{
|
{
|
||||||
|
check_pwg_token();
|
||||||
set_make_full_url();
|
set_make_full_url();
|
||||||
|
|
||||||
$img = array();
|
$img = array();
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ span.errors {
|
|||||||
{/html_style}
|
{/html_style}
|
||||||
|
|
||||||
<form action="{$F_ACTION}" method="post" id="categoryNotify">
|
<form action="{$F_ACTION}" method="post" id="categoryNotify">
|
||||||
|
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
|
||||||
|
|
||||||
<fieldset id="emailCatInfo">
|
<fieldset id="emailCatInfo">
|
||||||
<legend><span class="icon-mail-1 icon-green"></span>{'Send mail to users'|@translate}</legend>
|
<legend><span class="icon-mail-1 icon-green"></span>{'Send mail to users'|@translate}</legend>
|
||||||
|
|||||||
Reference in New Issue
Block a user