need to clean html tag classes in comments
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
18.04 |
Fix Released
|
High
|
Unassigned | ||
18.10 |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
19.04 |
Fix Released
|
High
|
Unassigned |
Bug Description
When adding a comment, the text can include html tags with classes that might interfere with the styling classes used by core. This could break the functionality of the page.
To replicate
- create a page and display it
- at the bottom, in the comment text area, expand the toolbar
- click on the 'Source code' button and add the text:
<div class="post list-group-item clearfix flush">
<div id="user_
<div class="modal-dialog modal-lg">
<div class="
<div class="modal-body flush">
<div class="list-group list-group-lite">
<div id="user_
<div class="
<div class="
<p>Comment text.</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="post list-group-item clearfix flush"> </div></div>
Expected result:
- The page refreshes and the text "Comment text." is displayed
Actual result:
- The comment is not displayed
Changed in mahara: | |
milestone: | none → 19.04.0 |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
importance: | Undecided → High |
status: | New → In Progress |
description: | updated |
Patch for "master" branch: https:/ /reviews. mahara. org/9325