Permalink
Browse files

MDL-35472: Prevent html tags appearing in page titles

Only a problem when formatstringstriptags is disabled
  • Loading branch information...
1 parent c8ac480 commit e97ddbd8ff970b03f33c4b6ff3f7f68376cebdee @simoncoggins simoncoggins committed Sep 17, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/pagelib.php
View
@@ -1055,6 +1055,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 e97ddbd

Please sign in to comment.