Comment 9 for bug 1612451

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

Reviewed: https://reviews.mahara.org/6834
Committed: https://git.mahara.org/mahara/mahara/commit/2327631a381eb139ad093a650a4d5627616f0ea6
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.04_STABLE

commit 2327631a381eb139ad093a650a4d5627616f0ea6
Author: Aaron Wells <email address hidden>
Date: Tue Aug 9 17:41:10 2016 +1200

Bug 1612451: Graceful handling of invalid embedded artefact id

Adds a try/catch block so that the code doesn't crash if
you've put in an invalid image ID in an embedded image tag.
Also tweaks the embed code so that it will skip invalid
images but continue processing the rest of the text block.

behatnotneeded: Covered by existing tests

Change-Id: I573adc7d29a0c1a4289f1b0a0b402d308a739be9
(cherry picked from commit f7470234c8be263368988cd712b25782dd7dfd48)