Skip to content

Commit c3afce0

Browse files
committed
Security: Initialize variable to avoid wrong result by old value
See GHSA-qv5j-rq2p-q5w5
1 parent c4d98f1 commit c3afce0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/inc/ajax/model.ajax.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ function getWhereClause($col, $oper, $val)
143143
$accessEndDate = '';
144144
$overwriteColumnHeaderExport = [];
145145

146+
$result = [];
147+
146148
if (!empty($search)) {
147149
$search = 'true';
148150
}
@@ -215,7 +217,7 @@ function getWhereClause($col, $oper, $val)
215217
}
216218
}
217219

218-
$result = $extraField->getExtraFieldRules($filters, 'extra_');
220+
$result = []; $extraField->getExtraFieldRules($filters, 'extra_');
219221

220222
$extra_fields = $result['extra_fields'];
221223
$condition_array = $result['condition_array'];

0 commit comments

Comments
 (0)