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-22390 autolink filter: handle URLs in brackets better.
This breaks some legitimate URLs like http://en.wikipedia.org/wiki/Slash_(punctuation). This is a necessary trade-off. Many other web systems do not handle that case correctly either. The work-around it so escape the ) as %29. This commit also improves the way the unit tests for this work. It also fixes a couple of other tricky cases that were spotted in the forums while this was being discussed. See the new test cases.
- Loading branch information
Showing
2 changed files
with
51 additions
and
25 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