Fix potential XSS issue
This commit is contained in:
parent
53b866e98f
commit
98e2dc3db8
1 changed files with 5 additions and 0 deletions
|
@ -840,6 +840,11 @@ class kolab_files_engine
|
|||
$cells = [];
|
||||
|
||||
foreach ($a_show_cols as $col) {
|
||||
// sanity check
|
||||
if (!preg_match('/^[a-zA-Z_-]+$/', $col)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// get column name
|
||||
switch ($col) {
|
||||
case 'options':
|
||||
|
|
Loading…
Add table
Reference in a new issue