mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01: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
|
||||
if (isset($_POST['submitEmail']))
|
||||
{
|
||||
check_pwg_token();
|
||||
set_make_full_url();
|
||||
|
||||
$img = array();
|
||||
|
||||
@@ -61,6 +61,7 @@ span.errors {
|
||||
{/html_style}
|
||||
|
||||
<form action="{$F_ACTION}" method="post" id="categoryNotify">
|
||||
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
|
||||
|
||||
<fieldset id="emailCatInfo">
|
||||
<legend><span class="icon-mail-1 icon-green"></span>{'Send mail to users'|@translate}</legend>
|
||||
|
||||
Reference in New Issue
Block a user