Public bug reported:

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)

** Affects: mahara
     Importance: Undecided
         Status: New

** Attachment added: "remove_base64_image"
   
https://bugs.launchpad.net/bugs/1820546/+attachment/5247116/+files/remove_base64_image

-- 
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:
  New

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

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to