From 48ae4707cc0010e6613c6e209036e6b68c1ceef4 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Wed, 13 Jul 2016 10:24:58 +0800 Subject: [PATCH] MDL-47371 mod_book: Fix out of scope $unescapedtitle --- mod/book/locallib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/book/locallib.php b/mod/book/locallib.php index bb46c0183a7..0cfe1921b7e 100644 --- a/mod/book/locallib.php +++ b/mod/book/locallib.php @@ -331,6 +331,7 @@ function book_get_toc($chapters, $chapter, $book, $cm, $edit) { $toc .= html_writer::start_tag('ul'); foreach ($chapters as $ch) { $title = trim(format_string($ch->title, true, array('context'=>$context))); + $titleunescaped = trim(format_string($ch->title, true, array('context' => $context, 'escape' => false))); if (!$ch->hidden) { if (!$ch->subchapter) { $nch++; -- 2.43.0