Skip to content

Commit

Permalink
escape course titles names
Browse files Browse the repository at this point in the history
  • Loading branch information
juan-cortizas-ponte committed Dec 27, 2021
1 parent 04a13ce commit ae79527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/admin/access_url_edit_courses_to_url.php
Expand Up @@ -197,7 +197,7 @@ function remove_item(origin) {
<?php
foreach ($no_course_list as $no_course) {
?>
<option value="<?php echo $no_course['id']; ?>" title="<?php echo $no_course['title'].' ('.$no_course['code'].')'; ?>"><?php echo $no_course['title'].' ('.$no_course['code'].')'; ?></option>
<option value="<?php echo $no_course['id']; ?>" title="<?php echo htmlentities($no_course['title'], ENT_QUOTES).' ('.$no_course['code'].')'; ?>"><?php echo $no_course['title'].' ('.$no_course['code'].')'; ?></option>
<?php
}
unset($no_course_list); ?>
Expand Down Expand Up @@ -234,7 +234,7 @@ function remove_item(origin) {
<?php
foreach ($course_list as $course) {
$courseInfo = api_get_course_info_by_id($course['id']); ?>
<option value="<?php echo $course['id']; ?>" title="<?php echo $course['title'].' ('.$courseInfo['code'].')'; ?>">
<option value="<?php echo $course['id']; ?>" title="<?php echo htmlentities($course['title'], ENT_QUOTES).' ('.$courseInfo['code'].')'; ?>">
<?php echo $course['title'].' ('.$courseInfo['code'].')'; ?>
</option>
<?php
Expand Down

0 comments on commit ae79527

Please sign in to comment.