mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
check input parameter for cat_options pages
solving https://github.com/Piwigo/Piwigo/issues/724
This commit is contained in:
@@ -44,6 +44,7 @@ if (isset($_POST['falsify'])
|
|||||||
and count($_POST['cat_true']) > 0)
|
and count($_POST['cat_true']) > 0)
|
||||||
{
|
{
|
||||||
check_pwg_token();
|
check_pwg_token();
|
||||||
|
check_input_parameter('cat_true', $_POST, true, PATTERN_ID);
|
||||||
switch ($_GET['section'])
|
switch ($_GET['section'])
|
||||||
{
|
{
|
||||||
case 'comments' :
|
case 'comments' :
|
||||||
@@ -82,6 +83,7 @@ else if (isset($_POST['trueify'])
|
|||||||
and isset($_POST['cat_false'])
|
and isset($_POST['cat_false'])
|
||||||
and count($_POST['cat_false']) > 0)
|
and count($_POST['cat_false']) > 0)
|
||||||
{
|
{
|
||||||
|
check_input_parameter('cat_false', $_POST, true, PATTERN_ID);
|
||||||
switch ($_GET['section'])
|
switch ($_GET['section'])
|
||||||
{
|
{
|
||||||
case 'comments' :
|
case 'comments' :
|
||||||
|
|||||||
Reference in New Issue
Block a user