MDL-47995 mod_url: add proper title encoding on url mod
authoriclearn <iclearn@users.noreply.github.com>
Wed, 1 Apr 2015 11:26:03 +0000 (16:56 +0530)
committerSimey Lameze <simey@moodle.com>
Mon, 25 May 2015 04:46:28 +0000 (12:46 +0800)
mod/url/locallib.php

index 7951e2b..591a29e 100644 (file)
@@ -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 = <<<EOF