Skip to content

Commit

Permalink
MDL-35472: Prevent html tags appearing in page titles
Browse files Browse the repository at this point in the history
Only a problem when formatstringstriptags is disabled
  • Loading branch information
simoncoggins committed Sep 17, 2012
1 parent c8ac480 commit e97ddbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/pagelib.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit e97ddbd

Please sign in to comment.