Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-35472: Prevent html tags appearing in page titles

Only a problem when formatstringstriptags is disabled
  • Loading branch information...
commit 119b5fdc8b32b20e41551e69611f11f7b877536f 1 parent 32efb09
@simoncoggins simoncoggins authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/pagelib.php
View
1  lib/pagelib.php
@@ -1073,6 +1073,7 @@ public function add_body_classes($classes) {
*/
public function set_title($title) {
$title = format_string($title);
+ $title = strip_tags($title);
$title = str_replace('"', '"', $title);
$this->_title = $title;
}
Please sign in to comment.
Something went wrong with that request. Please try again.