From a42cf7363208aafbebdaefd0ee657a268befdde4 Mon Sep 17 00:00:00 2001 From: Platonides Date: Fri, 8 Oct 2010 22:20:57 +0000 Subject: [PATCH] Add parsertest for r74526. Note that if we hadn't the first escaping, we would have a security vulnerability. So be careful if you break this parser test. --- maintenance/tests/parser/parserTests.txt | 48 ++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/maintenance/tests/parser/parserTests.txt b/maintenance/tests/parser/parserTests.txt index 631df22cd6..1725b1e4ba 100644 --- a/maintenance/tests/parser/parserTests.txt +++ b/maintenance/tests/parser/parserTests.txt @@ -4097,6 +4097,54 @@ But just in case it doesn't...

!! end +!! test +Header with special characters (bug 25462) +!! input +The tooltips shall not show entities to the user (ie. be double escaped) + +== text > text == +section 1 + +== text < text == +section 2 + +== text & text == +section 3 + +== text ' text == +section 4 + +== text " text == +section 5 +!! result +

The tooltips shall not show entities to the user (ie. be double escaped) +

+

Contents

+ +
+

[edit] text > text

+

section 1 +

+

[edit] text < text

+

section 2 +

+

[edit] text & text

+

section 3 +

+

[edit] text ' text

+

section 4 +

+

[edit] text " text

+

section 5 +

+!! end + !! test BUG 1219 URL next to image (broken) !! input -- 2.20.1