From e867407ae8b86b3170f0f103607d54a0fb7c616e Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 24 Jan 2022 17:54:06 +0100 Subject: Fix PHP 8.1 warning when URL given to U() is invalid --- test/U_tests.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/U_tests.json') diff --git a/test/U_tests.json b/test/U_tests.json index 0025565..83a6771 100644 --- a/test/U_tests.json +++ b/test/U_tests.json @@ -219,5 +219,11 @@ "args": ["a:b:c:d:javascript:alert('fail');"], "exp": "alert(%27fail%27)%3B", "name": "U() remove multiple schemes from path" + }, + + { + "args": ["//Oeffnungszeiten:8.30-17.00/"], + "exp": "//Oeffnungszeiten:8.30-17.00/", + "name": "U() with invalid URL" } ] -- cgit v1.2.3