Skip to content

Commit 95eef5d

Browse files
committed
Notebook: add remove_xss
1 parent df68cef commit 95eef5d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

main/inc/lib/notebook.lib.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,11 @@ public static function display_notes()
304304
Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL).'</a>';
305305

306306
echo Display::panel(
307-
$row['description'],
308-
$row['title'].$session_img.' <div class="pull-right">'.$actions.'</div>',
309-
get_lang('CreationDate').': '.Display::dateToStringAgoAndLongDate($row['creation_date']).$updateValue
307+
Security::remove_XSS($row['description']),
308+
Security::remove_XSS($row['title']).$session_img.
309+
' <div class="pull-right">'.$actions.'</div>',
310+
get_lang('CreationDate').': '.Display::dateToStringAgoAndLongDate($row['creation_date']).
311+
$updateValue
310312
);
311313
}
312314
}

0 commit comments

Comments
 (0)