Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-44634 Regression: link to user profile in comments block fails du…

…e to double URI encoding
  • Loading branch information...
commit 4a678042eb18bfbd7fb01f42aed22310b0d152fd 1 parent 263f3b1
@dbezborodovrp dbezborodovrp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  comment/lib.php
View
2  comment/lib.php
@@ -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(true);
+ $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);
Please sign in to comment.
Something went wrong with that request. Please try again.