Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.9.10, 1.9.11
-
Fix Version/s: 1.9.12
-
Component/s: Filters, HTML Editor
-
Labels:
-
Database:MySQL
-
Affected Branches:MOODLE_19_STABLE
-
Fixed Branches:MOODLE_19_STABLE
Description
Insert this code in HTML mode.
TEXT MIDDLE and LINK will be missing on save. (Must activate multimedia plugin)
I have tested it in 1.9.10 and 1.9.11+
But it was working in 1.9.7
TEXT BEFORE <a href="http://www.domain.com/moodle/file.php/123/Test.pdf" target="_blank" title="Lien">LINK</a> TEXT MIDDLE <a href="http://www.domain.com/moodle/file.php/123/music.mp3">AUDIO LINK</a> TEXT AFTER
I think the regex are incorrect in filter.php but they seems to be OK in moodle 2.0 branch
I moved it to "major" cause it breaks something that was working before..
Issue Links
| This issue will be resolved by: | ||||
| PULL-386 | fix invalid regex matching in mediaplugin filter |
|
|
|
| This issue is duplicated by: | ||||
| MDL-26457 | Problems in Moodle 1.9 mediaplugin filter... |
|
|
|
| MDL-19230 | mediaplugin filters capture way too much |
|
|
|
| This issue has been marked as being related by: | ||||
| MDL-25646 | html_writer is used in mediaplugin but is not defined |
|
|
|
Jonathan Harker reported similar regression in 1.9.11
The following is HTMLArea generated content, entered as a web page resource:
The result is that only the last video is shown. Reverting the three 1.9.10-1.9.11 commits fixes the problem (all six videos are shown).