← Back to team overview

mahara-contributors team mailing list archive

[Bug 1820546] Re: Issue when removing a base64 encoded image from comment

 

** Changed in: mahara
    Milestone: 20.04.0 => None

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1820546

Title:
  Issue when removing a base64 encoded image from comment

Status in Mahara:
  Confirmed

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1820546/+subscriptions


References