Permalink
Browse files

MDL-35472: Prevent html tags appearing in page titles

Only a problem when formatstringstriptags is disabled
  • Loading branch information...
1 parent 32efb09 commit 119b5fdc8b32b20e41551e69611f11f7b877536f @simoncoggins simoncoggins committed Sep 18, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/pagelib.php
View
@@ -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;
}

0 comments on commit 119b5fd

Please sign in to comment.