Commit 9ddb9c0b authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) crashreport, fix some input validation

parent 52dce31b
......@@ -197,8 +197,10 @@ function index_groups()
if (isset($config['system']['group'])) {
$i = 0;
foreach($config['system']['group'] as $groupent) {
$groupindex[$groupent['name']] = $i;
$i++;
if (isset($groupent['name'])) {
$groupindex[$groupent['name']] = $i;
$i++;
}
}
}
......@@ -584,6 +586,10 @@ function local_group_del_user($user)
function local_group_set($group, $reset = false)
{
if (!isset($group['name']) || !isset($group['gid'])) {
// input data invalid
return false;
}
$group_name = $group['name'];
$group_gid = $group['gid'];
$group_members = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment