Skip to content

Commit 3dd6812

Browse files
committed
check input parameter for cat_options pages
solving #724
1 parent 03a8329 commit 3dd6812

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: admin/cat_options.php

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
and count($_POST['cat_true']) > 0)
4545
{
4646
check_pwg_token();
47+
check_input_parameter('cat_true', $_POST, true, PATTERN_ID);
4748
switch ($_GET['section'])
4849
{
4950
case 'comments' :
@@ -82,6 +83,7 @@
8283
and isset($_POST['cat_false'])
8384
and count($_POST['cat_false']) > 0)
8485
{
86+
check_input_parameter('cat_false', $_POST, true, PATTERN_ID);
8587
switch ($_GET['section'])
8688
{
8789
case 'comments' :

0 commit comments

Comments
 (0)