mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
#8925 Fixed XSS
This commit is contained in:
parent
7d86f7f88d
commit
6771fc9b95
@ -278,11 +278,11 @@ foreach ($sessions as $session) {
|
|||||||
true
|
true
|
||||||
).human_time_comparation($session['utimestamp'], 'tiny');
|
).human_time_comparation($session['utimestamp'], 'tiny');
|
||||||
$data[3] = $session_ip_origen;
|
$data[3] = $session_ip_origen;
|
||||||
$description = str_replace([',', ', '], ', ', $session['descripcion']);
|
$description = io_safe_output(str_replace([',', ', '], ', ', $session['descripcion']));
|
||||||
if (strlen($description) > 100) {
|
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 {
|
} else {
|
||||||
$data[4] = '<div >'.io_safe_output($description).'</div>';
|
$data[4] = '<div >'.io_safe_input($description).'</div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
array_push($table->data, $data);
|
array_push($table->data, $data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user