From: Gabriel Wicke
Date: Wed, 21 Nov 2012 01:36:33 +0000 (-0800)
Subject: Test wiki link to title with question mark
X-Git-Tag: 1.31.0-rc.0~21561
X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=790431be458f75b0a25214961631a06fe98c7698;p=lhc%2Fweb%2Fwiklou.git
Test wiki link to title with question mark
Percent-encode the question mark so that it is not treated as a query string
separator.
Change-Id: I8b3402df96fb783954cf6d7cd0fdffcf104bbe99
---
diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt
index 2d8a6b82b6..f6091b4159 100644
--- a/tests/parser/parserTests.txt
+++ b/tests/parser/parserTests.txt
@@ -102,6 +102,12 @@ Template:table_attribs
|style="color: red"| Foo
!! endarticle
+!! article
+A?b
+!! text
+Weirdo titles!
+!! endarticle
+
###
### Basic tests
###
@@ -3149,6 +3155,18 @@ Plain link to protocol-relative URL with link text
!! end
+!! test
+Plain link to page with question mark in title
+!! input
+[[A?b]]
+
+[[A?b|Baz]]
+!! result
+A?b
+
Baz
+
+!! end
+
# I'm fairly sure the expected result here is wrong.
# We want these to be URL links, not pseudo-pages with URLs for titles....