Skip to content

Commit 28dc591

Browse files
committed
Session: add remove_xss
1 parent 83e994c commit 28dc591

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main/session/add_courses_to_session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ function remove_item(origin)
216216
} ?>" style="margin:0px;" <?php if ($ajax_search) {
217217
echo ' onsubmit="valide();"';
218218
}?>>
219-
<legend><?php echo $tool_name.' ('.$session_info['name'].')'; ?></legend>
219+
<legend><?php echo $tool_name.' ('.Security::remove_XSS($session_info['name']).')'; ?></legend>
220220
<input type="hidden" name="formSent" value="1" />
221221
<div id="multiple-add-session" class="row">
222222
<div class="col-md-4">

main/session/add_users_to_session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ function change_select(val) {
588588
} ?>" <?php if ($ajax_search) {
589589
echo ' onsubmit="valide();"';
590590
} ?>>
591-
<?php echo '<legend>'.$tool_name.' ('.$session_info['name'].') </legend>'; ?>
591+
<?php echo '<legend>'.$tool_name.' ('.Security::remove_XSS($session_info['name']).') </legend>'; ?>
592592
<?php
593593
if ($add_type == 'multiple') {
594594
if (is_array($extra_field_list)) {

0 commit comments

Comments
 (0)