Comment 3 for bug 1887317

Revision history for this message
Cecilia Vela Gurovic (ceciliavg) wrote :

to test follow steps

- have a mahara site 18.10
- add a comment to a page
- go to the DB and check the id of the comment

select * from artefact where artefacttype='comment'
- change the artefact description to a malformed xml

update artefact set
description ='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>
<p class="a" align="center"><strong><span lang="EN-US">Title</span></strong></p>
<p class="a"><span lang="EN-US">Random text.</span></p>
<p class="a"><span lang="EN-US"><img src="data:image/png,iVBORw0'
where id = <artefact id>;

- change the code to master branch
- upgrade

excepted result: the site upgrades without any errors
actual results: the upgrade will show errors like the ones shown in the image attached to this bug report