Skip to content

Commit

Permalink
MDL-11414 fixed handling of log urls (problem reported by Andreas Nol…
Browse files Browse the repository at this point in the history
…den); backported from HEAD; fixing previous commit :-(
  • Loading branch information
skodak committed Sep 23, 2007
1 parent 55f9f14 commit 81ac2c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/lib.php
Expand Up @@ -417,7 +417,7 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per

$log->url = strip_tags(urldecode($log->url)); // Some XSS protection
$log->info = strip_tags(urldecode($log->info)); // Some XSS protection
$log->url = str_replace('&', '&', $log->url); /// XHTML compatibility
$log->url = s($log->url); /// XSS protection and XHTML compatibility - should be in link_to_popup_window() instead!!

echo '<tr class="r'.$row.'">';
if ($course->id == SITEID) {
Expand Down Expand Up @@ -509,7 +509,7 @@ function print_log_csv($course, $user, $date, $order='l.time DESC', $modname,

$log->url = strip_tags(urldecode($log->url)); // Some XSS protection
$log->info = strip_tags(urldecode($log->info)); // Some XSS protection
$log->url = s($log->url); /// XSS protection and XHTML compatibility - should be in link_to_popup_window() instead!!
$log->url = str_replace('&', '&amp;', $log->url); /// XHTML compatibility

$firstField = $courses[$log->course];
$fullname = fullname($log, has_capability('moodle/site:viewfullnames', get_context_instance(CONTEXT_COURSE, $course->id)));
Expand Down

0 comments on commit 81ac2c8

Please sign in to comment.