mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
c2c6af946c
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.