MDL-47995 mod_resource: properly encode resource title

This commit is contained in:
iclearn 2015-04-01 16:57:10 +05:30 committed by Simey Lameze
parent 803f565753
commit c9b445990f

View File

@ -137,7 +137,7 @@ function resource_display_frame($resource, $cm, $course, $file) {
$navurl = "$CFG->wwwroot/mod/resource/view.php?id=$cm->id&frameset=top";
$title = strip_tags(format_string($course->shortname.': '.$resource->name));
$framesize = $config->framesize;
$contentframetitle = format_string($resource->name);
$contentframetitle = s(format_string($resource->name));
$modulename = s(get_string('modulename','resource'));
$dir = get_string('thisdirection', 'langconfig');