From 34a0745e18910acd7f90a19dbd08ff03de2456bc Mon Sep 17 00:00:00 2001 From: Christian A. Weber Date: Mon, 21 Aug 2017 18:10:10 +0200 Subject: add it_url::parse_str() which leaves dots and spaces in arg names intact --- tests/it_html.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/it_html.t b/tests/it_html.t index 538a350..2291c54 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -195,6 +195,12 @@ is( 'U() args override get params in base url' ); +is( + U("/foo.html?bar.qux=a.b", array('c.d' => "e.f", 'g h' => "i j")), + '/foo.html?bar.qux=a.b&c.d=e.f&g+h=i+j', + 'U() dots and spaces in arg names are preserved' +); + is( U("/foo.html?bar=qux#frag=frog", array('baz' => "gna")), '/foo.html?bar=qux&baz=gna#frag=frog', -- cgit v1.2.3