From 42a3d7709d62175b0b277fd43a17f53e3f7d8d8d Mon Sep 17 00:00:00 2001 From: iclearn Date: Wed, 1 Apr 2015 16:57:10 +0530 Subject: [PATCH 1/2] 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'); From 127b75e1610a126c95e8ab6fee283cd6320b9fde Mon Sep 17 00:00:00 2001 From: iclearn Date: Wed, 1 Apr 2015 16:56:03 +0530 Subject: [PATCH 2/2] MDL-47995 mod_url: add proper title encoding on url mod --- mod/url/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/url/locallib.php b/mod/url/locallib.php index b8822873840..2342ab5dc12 100644 --- a/mod/url/locallib.php +++ b/mod/url/locallib.php @@ -222,7 +222,7 @@ function url_display_frame($url, $cm, $course) { $title = strip_tags($courseshortname.': '.format_string($url->name)); $framesize = $config->framesize; $modulename = s(get_string('modulename','url')); - $contentframetitle = format_string($url->name); + $contentframetitle = s(format_string($url->name)); $dir = get_string('thisdirection', 'langconfig'); $extframe = <<