Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.8
-
MOODLE_38_STABLE
-
MOODLE_37_STABLE, MOODLE_38_STABLE
-
MDL-67336-master -
Description
Forum inline reply is not saving content in the DB as it is in the editor, is applying filters before saving it in the DB.
So, for example, if 'Display H5P' filter is enabled in the site and somebody adds H5P content (URL) in an inline reply, the filter is applied and an <iframe src='...'></iframe> is saved in the DB. When the reply is display, an if trustedcontent is not activated, that 'iframe' tag is removed, so H5P content is not rendered.
Steps to reproduce:
- Go to a forum post
- Click on 'Reply' option
- Add 'H5P: https://h5p.org/h5p/embed/576651' content in inline reply field.
- Check content stored in the DB is:
<div class="text_to_html">H5P: <iframe src="https://h5p.org/h5p/embed/576651" class="h5p-iframe" name="h5pcontent" style="height:230px; width: 100%; border: 0;" allowfullscreen="allowfullscreen"></iframe><script src="http://localhost/moodle/master/lib/h5p/js/h5p-resizer.js"></script></div> |
Attachments
Issue Links
- Testing discovered
-
MDL-67549 'HTML format' option mark by default in 'Apply to formats' setting for 'Convert URLs into links and images' filter
-
- Open
-
- mentioned on