Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.8, 2.2.5, 2.3.2
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE
-
Description
If formatstringstriptags is disabled (so HTML is allowed in activity names), then viewing most activities will lead to the tags appearing in the page title.
Replication steps:
- Go to Site Admin > Appearance > HTML Settings and uncheck "Remove HTML tags from all activity names"
- Create a course
- Add an activity (any will do but lets say a quiz)
- Give activity the name "<span style="font-size:2em;">My Quiz</span>" and save
- Click to enter the quiz
Expected result: The HTML tags should be stripped from the title.
Actual result: The browser title bar will include the tags from the activity name, e.g. the title will be:
test course: <span style="font-size:2em;">My Quiz</span>