MDL-69048 book: Sanitize previous chapter value in add new chapter page

This commit is contained in:
Mihail Geshoski
2020-09-08 08:54:26 +02:00
committed by Jenkins
parent a35b0464b1
commit 630078eb4a
+1 -1
View File
@@ -51,7 +51,7 @@ class book_chapter_edit_form extends moodleform {
if (isset($chapter->currentchaptertitle)) {
$mform->addElement('static', 'details',
get_string('previouschapter', 'mod_book'),
$chapter->currentchaptertitle
trim(format_string($chapter->currentchaptertitle, true))
);
}