From: Platonides
Date: Fri, 8 Oct 2010 22:20:57 +0000 (+0000)
Subject: Add parsertest for r74526.
X-Git-Tag: 1.31.0-rc.0~34576
X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=a42cf7363208aafbebdaefd0ee657a268befdde4;p=lhc%2Fweb%2Fwiklou.git
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.
---
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)
+
+
+[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