Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-35472: Prevent html tags appearing in page titles

Only a problem when formatstringstriptags is disabled
  • Loading branch information...
commit e97ddbd8ff970b03f33c4b6ff3f7f68376cebdee 1 parent c8ac480
@simoncoggins simoncoggins authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/pagelib.php
View
1  lib/pagelib.php
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.