Skip to content

Commit

Permalink
htmlspecialchars_decode for course titles
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrgay committed Mar 10, 2018
1 parent 4312f18 commit c4ca336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

$courses[] = array_merge($row, (array) $tests);
for($i = 0; $i < count($courses); $i++ ){
$courses[$i]['title'] = stripslashes($courses[$i]['title']);
$courses[$i]['title'] = stripslashes(htmlspecialchars_decode($courses[$i]['title'], ENT_QUOTES));
$courses[$i]['banner'] = stripslashes($courses[$i]['banner']);
$courses[$i]['description'] = stripslashes($courses[$i]['description']);
}
Expand Down

0 comments on commit c4ca336

Please sign in to comment.