Displaying image via data base64

Bug #1695118 reported by Robert Lyon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Robert Lyon

Bug Description

The HTMLpurifier does not allow base64 image files to be displayed.

The clean_html() function strips them out, which is annoying if you upload an .html file that contains the base64 images as the html will not display as expected in the HTML block

This fix for that sounds easy enough to add so I will

https://stackoverflow.com/questions/26524222/how-can-i-configure-html-purifier-to-allow-data-uris-for-image-src#26537423

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/7804

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/7804
Committed: https://git.mahara.org/mahara/mahara/commit/ec8acd71c8debaa4285a3e31f791cb22db60d513
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit ec8acd71c8debaa4285a3e31f791cb22db60d513
Author: Robert Lyon <email address hidden>
Date: Fri Jun 2 12:18:21 2017 +1200

Bug 1695118: Allowing base64 images to pass htmlpurifier

See https://stackoverflow.com/questions/26524222/how-can-i-configure-html-purifier-to-allow-data-uris-for-image-src#26537423

behatnotneeded

Change-Id: I570f1d29bfdc396f3090a7c52e9cd8ba5f804503
Signed-off-by: Robert Lyon <email address hidden>

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
tags: added: nominatedfeature
Robert Lyon (robertl-9)
Changed in mahara:
status: Fix Committed → Fix Released
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.