Added parser test about brackets and for bug 21261
authorPlatonides <platonides@users.mediawiki.org>
Sat, 26 Nov 2011 21:47:37 +0000 (21:47 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 26 Nov 2011 21:47:37 +0000 (21:47 +0000)
tests/parser/parserTests.txt

index 78591f7..3c421de 100644 (file)
@@ -1189,6 +1189,29 @@ URL-encoding in URL functions (multiple parameters)
 </p>
 !! end
 
+!! test
+Brackets in urls
+!! input
+http://example.com/index.php?foozoid%5B%5D=bar
+
+http://example.com/index.php?foozoid&#x5B;&#x5D;=bar
+!! result
+<p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
+</p><p><a rel="nofollow" class="external free" href="http://example.com/index.php?foozoid%5B%5D=bar">http://example.com/index.php?foozoid%5B%5D=bar</a>
+</p>
+!! end
+
+!! test
+IPv6 urls (bug 21261)
+!! options
+disabled
+!! input
+http://[2404:130:0:1000::187:2]/index.php
+!! result
+<p><a rel="nofollow" class="external free" href="http://[2404:130:0:1000::187:2]/index.php">http://2404:130:0:1000::187:2/index.php</a>
+</p>
+!! end
+
 ###
 ### Quotes
 ###