From fba49ba1ccde7f9f7ce07e40291f23b5c4419893 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Wed, 6 Sep 2023 16:07:44 +0100 Subject: [PATCH] MDL-79283 core: add title to embedded iframe, for accessibility. --- lib/resourcelib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/resourcelib.php b/lib/resourcelib.php index 67216ee3c8610..6e505d9f25eff 100644 --- a/lib/resourcelib.php +++ b/lib/resourcelib.php @@ -262,13 +262,13 @@ function resourcelib_embed_general($fullurl, $title, $clicktoopen, $mimetype) { $fullurl = $fullurl->out(); } - $param = ''; + $title = s($title); // Always use iframe embedding because object tag does not work much, // this is ok in HTML5. $code = << -