From 3c94c414df60719fdcf8953531cc2eb7d417ed77 Mon Sep 17 00:00:00 2001 From: David Flatz Date: Mon, 18 Jun 2018 15:18:16 +0200 Subject: urlencode keys of nested structures; this fixes illegal characters in urls --- tests/U_tests.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/U_tests.json b/tests/U_tests.json index 591fdc9..e35ff9d 100644 --- a/tests/U_tests.json +++ b/tests/U_tests.json @@ -201,5 +201,11 @@ "args": ["app://settings"], "exp": "app://settings", "name": "U() do not add / for non-http url without path" + }, + + { + "args": ["/foo.html", {"": {"": "ham"}}], + "exp": "/foo.html?%3Cspam%3E%5B%3Cspam%3E%5D=ham", + "name": "U() urlencode keys of nested structures" } ] -- cgit v1.2.3