From 51eacd349ad58f74914fa3339fccdf53af59b6ce Mon Sep 17 00:00:00 2001 From: Christian A. Weber Date: Tue, 28 Jun 2016 11:30:05 +0200 Subject: add unit test to U() for encoding of ? --- tests/it_html.t | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/it_html.t b/tests/it_html.t index 4f4da24..22c8459 100755 --- a/tests/it_html.t +++ b/tests/it_html.t @@ -195,6 +195,11 @@ is( 'U() with single quotes in URL' ); +is( + U('/test.html?foo=bar?qux=gna', array('?q' => '?r')), + '/test.html?foo=bar?qux=gna&%3Fq=%3Fr', + 'U() quoting of ? in args but not base' +); is( U('%% %1%x %1x%x1%xx%11%ff%FF'), '%25%25%20%251%25x%20%251x%25x1%25xx%11%ff%FF', -- cgit v1.2.3