Add some parser tests for URL-encoding in URL functions. The second case could be...
authorRob Church <robchurch@users.mediawiki.org>
Sat, 20 Jan 2007 20:15:33 +0000 (20:15 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 20 Jan 2007 20:15:33 +0000 (20:15 +0000)
maintenance/parserTests.txt

index 1df9c3f..0a2951a 100644 (file)
@@ -983,7 +983,23 @@ External link containing double-single-quotes in text embedded in italics (bug 4
 </p>
 !! end
 
+!! test
+URL-encoding in URL functions (single parameter)
+!! input
+{{localurl:Some page|amp=&}}
+!! result
+<p>/index.php?title=Some_page&amp;amp=%26
+</p>
+!! end
 
+!! test
+URL-encoding in URL functions (multiple parameters)
+!! input
+{{localurl:Some page|q=?&amp=&}}
+!! result
+<p>/index.php?title=Some_page&amp;q=%3F&amp;amp=%26
+</p>
+!! end
 
 ###
 ### Quotes