Skip to content

Commit

Permalink
Merge pull request #43 from MichaelRoosz/fix_getCustomVariables
Browse files Browse the repository at this point in the history
Fix uncaught exception in getCustomVariables()
  • Loading branch information
AltamashShaikh authored Apr 22, 2022
2 parents 081a0e0 + ff0d111 commit 88bd2da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tracker/CustomVariablesRequestProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ private static function getCustomVariables(Request $request, $parameter)
foreach ($customVar as $id => $keyValue) {
$id = (int)$id;

if (!is_array($keyValue)) {
continue;
}

if ($id < 1
|| $id > $maxCustomVars
|| count($keyValue) != 2
Expand Down

0 comments on commit 88bd2da

Please sign in to comment.