From 9d908d61e587b1b34347635bb22d133314d8093a Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Mon, 15 Jul 2013 16:24:24 +0000 Subject: fix absolute() for urs like /foo//bar --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index 3fcd243..2c375f8 100644 --- a/it_url.class +++ b/it_url.class @@ -725,7 +725,7 @@ static function absolute($url=null) if (!preg_match('/^http/', $url)) { - if (!preg_match('#//#', $url)) + if (!preg_match('#^//#', $url)) { $dir = preg_replace('#/[^/]*$#', '/', $_SERVER['PHP_SELF']); $url = preg_match('#^/#', $url) ? $url : "$dir$url"; -- cgit v1.2.3