From 4a678042eb18bfbd7fb01f42aed22310b0d152fd Mon Sep 17 00:00:00 2001 From: Damien Bezborodov Date: Thu, 15 May 2014 10:37:39 +0930 Subject: [PATCH] MDL-44634 Regression: link to user profile in comments block fails due to double URI encoding --- comment/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comment/lib.php b/comment/lib.php index c158c97800c..ffcd943e50b 100644 --- a/comment/lib.php +++ b/comment/lib.php @@ -528,7 +528,7 @@ class comment { $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);