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)
Reviewed: https:/ /reviews. mahara. org/6834 /git.mahara. org/mahara/ mahara/ commit/ 2327631a381eb13 9ad093a650a4d56 27616f0ea6
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 15.04_STABLE
commit 2327631a381eb13 9ad093a650a4d56 27616f0ea6
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: I573adc7d29a0c1 a4289f1b0a0b402 d308a739be9 368988cd712b257 82dd7dfd48)
(cherry picked from commit f7470234c8be263