From 025d7105bac7fa28c892ac221c8b82f90968ff9a Mon Sep 17 00:00:00 2001 From: Platonides Date: Sat, 26 Nov 2011 21:47:37 +0000 Subject: [PATCH] Added parser test about brackets and for bug 21261 --- tests/parser/parserTests.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 ### -- 2.20.1