Skip to content

Commit

Permalink
Checks that label index is an integer
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
  • Loading branch information
Sesquipedalian committed Feb 4, 2019
1 parent 293d58c commit 01e7cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/PersonalMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -3810,7 +3810,7 @@ function ManageRules()
foreach ($_POST['acttype'] as $ind => $type)
{
// Picking a valid label?
if ($type == 'lab' && (!isset($_POST['labdef'][$ind]) || !isset($context['labels'][$_POST['labdef'][$ind]])))
if ($type == 'lab' && (!ctype_digit((string) $ind) || !isset($_POST['labdef'][$ind]) || !isset($context['labels'][$_POST['labdef'][$ind]])))
continue;

// Record what we're doing.
Expand Down

0 comments on commit 01e7cf0

Please sign in to comment.