From c9b445990f8607a4f9c08496411a04892864b874 Mon Sep 17 00:00:00 2001 From: iclearn Date: Wed, 1 Apr 2015 16:57:10 +0530 Subject: [PATCH] MDL-47995 mod_resource: properly encode resource title --- mod/resource/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/resource/locallib.php b/mod/resource/locallib.php index b6b4464009d..a94a0b6c86b 100644 --- a/mod/resource/locallib.php +++ b/mod/resource/locallib.php @@ -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');