From a5fdef178ddda946429d95616266d8fec7f73a1a Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 29 Nov 2017 15:59:11 +0100 Subject: Do not add / for non-http url without path --- it_html.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_html.class') diff --git a/it_html.class b/it_html.class index c75f05e..35a5b11 100644 --- a/it_html.class +++ b/it_html.class @@ -569,7 +569,7 @@ static function U(/* ... */) $u[$key] ); - if (!$u['path'] && $hostpart) + if (!$u['path'] && $hostpart && preg_match('/^(https?)?$/', $u['scheme'])) $u['path'] = '/'; $queryparams = it_url::params($u['params'] + $params); -- cgit v1.2.3