Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5968add
)
MDL-47371 mod_book: Fix out of scope $unescapedtitle
author
Cameron Ball
<cameron@moodle.com>
Wed, 13 Jul 2016 02:24:58 +0000
(10:24 +0800)
committer
Cameron Ball
<cameron@moodle.com>
Wed, 13 Jul 2016 02:26:24 +0000
(10:26 +0800)
mod/book/locallib.php
patch
|
blob
|
blame
|
history
diff --git
a/mod/book/locallib.php
b/mod/book/locallib.php
index
bb46c01
..
0cfe192
100644
(file)
--- 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)));
$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++;
if (!$ch->hidden) {
if (!$ch->subchapter) {
$nch++;