Skip to content

Commit

Permalink
MDL-44634 Regression: link to user profile in comments block fails du…
Browse files Browse the repository at this point in the history
…e to double URI encoding
  • Loading branch information
Damien Bezborodov committed May 15, 2014
1 parent a9af43b commit 5d49b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ public function get_comments($page = '') {
$c->timecreated = $u->ctimecreated;
$c->strftimeformat = get_string('strftimerecent', 'langconfig');
$url = new moodle_url('/user/view.php', array('id'=>$u->id, 'course'=>$this->courseid));
$c->profileurl = $url->out(false); // URL should not be escaped just yet
$c->profileurl = $url->out(false); // URL should not be escaped just yet.
$c->fullname = fullname($u);
$c->time = userdate($c->timecreated, $c->strftimeformat);
$c->content = format_text($c->content, $c->format, $formatoptions);
Expand Down

0 comments on commit 5d49b2b

Please sign in to comment.