Issue when removing a base64 encoded image from comment

Bug #1820546 reported by Lisa Seeto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Medium
Unassigned

Bug Description

Mahara 18.10 master
OS: Linux
Postgres
Firefox 65.0.1

You can add a base64 encoded image to a text field such as a comment. This functionality was introduced when addressing this issue: https://bugs.launchpad.net/mahara/+bug/1742590
The maxLength attr for the field was altered to accept up to 1 million characters allowing a base64 image to be able to be added to a comment. After the comment is saved, editing the comment by viewing the source code reveals that the image has been converted into a blob, i.e: <img src="blob:http://mahara/ce5b1d93-d955-49bb-8f6b-1a6e12a7d509" alt="Z" />. When you delete the comment a warning is produced:

[WAR] fa (lib/htmltotext/htmltotext.php:27) DOMDocument::loadHTML(): Misplaced DOCTYPE declaration in Entity, line: 1 (please see attached screen shot)

Revision history for this message
Lisa Seeto (lisaseeto) wrote :
Changed in mahara:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 19.10.0
Changed in mahara:
milestone: 19.10.0 → 20.04.0
Changed in mahara:
milestone: 20.04.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.