Merge branch 'ent-8925-XSS-en-Manage-Agents' into 'develop'

Ent 8925 xss en manage agents

See merge request artica/pandorafms!4853
This commit is contained in:
Daniel Rodriguez 2022-05-12 07:45:09 +00:00
commit 94ab55bf82
1 changed files with 3 additions and 3 deletions

View File

@ -278,11 +278,11 @@ foreach ($sessions as $session) {
true
).human_time_comparation($session['utimestamp'], 'tiny');
$data[3] = $session_ip_origen;
$description = str_replace([',', ', '], ', ', $session['descripcion']);
$description = io_safe_output(str_replace([',', ', '], ', ', $session['descripcion']));
if (strlen($description) > 100) {
$data[4] = '<div >'.io_safe_output(substr($description, 0, 150).'...').'</div>';
$data[4] = '<div >'.io_safe_input(substr($description, 0, 150)).'...</div>';
} else {
$data[4] = '<div >'.io_safe_output($description).'</div>';
$data[4] = '<div >'.io_safe_input($description).'</div>';
}
array_push($table->data, $data);