Commit graph

7 commits

Author SHA1 Message Date
Ankit Agarwal
07323f50ff MDL-38466 filters: Redos protection and unit tests 2015-03-02 11:28:52 +01:00
Zachary Durber
a5b8265fc3 MDL-38466 filters: ReDoS protection for text to URL conversion. 2015-03-02 11:28:51 +01:00
Frederic Massart
850db41832 MDL-38698 filter_urltolink: Remove performance test in Unit Test 2013-12-17 07:03:02 +01:00
Frederic Massart
e15878798a MDL-38698 filter_urltolink: Do not link the URL property of CSS 2013-12-17 06:58:22 +01:00
Tim Hunt
e93cdb6915 MDL-40633 filter_urltolink breaking some image links.
This was a regression caused by MDL-22390. HTML like
<img src="http://www.example.com/logo.gif" />
was being broken.
2013-07-12 11:41:12 +01:00
Tim Hunt
c2c6af946c 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.
2013-06-07 10:40:37 +01:00
Petr Skoda
2a7ace1193 MDL-32149 add filter tests 2012-04-03 22:30:58 +02:00