mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-38431 comment: profile url should be escaped, as it's used in html
This commit is contained in:
parent
5288af68fc
commit
4f49e74fae
@ -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(false);
|
||||
$c->profileurl = $url->out(true);
|
||||
$c->fullname = fullname($u);
|
||||
$c->time = userdate($c->timecreated, $c->strftimeformat);
|
||||
$c->content = format_text($c->content, $c->format, $formatoptions);
|
||||
|
Loading…
x
Reference in New Issue
Block a user