Fix potential XSS issue

This commit is contained in:
Aleksander Machniak 2024-05-17 14:19:22 +02:00
parent 53b866e98f
commit 98e2dc3db8

View file

@ -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':