mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-68738 wiki: Prevent URLs inside links from turning into another link
There was a problem with wiki pages in the HTML markup syntax. If they contain a link and the link text has a URL in it, that URL was converted into another link. But it was not correctly nested and it caused additional troubles with filters (particularly the multimedia filter if the URL was a video such as on youtube). The solution here is similar to what we do in filters. We protect the whole explicit link so that its content is not further parsed. That prevents the inner URL to be converted into another link and the explicit link has the full control.
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters