From 790431be458f75b0a25214961631a06fe98c7698 Mon Sep 17 00:00:00 2001
From: Gabriel Wicke
Date: Tue, 20 Nov 2012 17:36:33 -0800
Subject: [PATCH] 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
---
tests/parser/parserTests.txt | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
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....
--
2.20.1