From: Platonides Date: Sat, 26 Nov 2011 21:47:37 +0000 (+0000) Subject: Added parser test about brackets and for bug 21261 X-Git-Tag: 1.31.0-rc.0~26283 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=025d7105bac7fa28c892ac221c8b82f90968ff9a;p=lhc%2Fweb%2Fwiklou.git Added parser test about brackets and for bug 21261 --- diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index 78591f7022..3c421dec67 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -1189,6 +1189,29 @@ URL-encoding in URL functions (multiple parameters)

!! end +!! test +Brackets in urls +!! input +http://example.com/index.php?foozoid%5B%5D=bar + +http://example.com/index.php?foozoid[]=bar +!! result +

http://example.com/index.php?foozoid%5B%5D=bar +

http://example.com/index.php?foozoid%5B%5D=bar +

+!! end + +!! test +IPv6 urls (bug 21261) +!! options +disabled +!! input +http://[2404:130:0:1000::187:2]/index.php +!! result +

http://2404:130:0:1000::187:2/index.php +

+!! end + ### ### Quotes ###