From 8e6225c837c7025bf2d1ffa84c8cf16f60e5705b Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 3 Oct 2014 14:57:38 +0200 Subject: allow any protocol in it_url::absolute() --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_url.class b/it_url.class index 3b8f5b0..5ed6294 100644 --- a/it_url.class +++ b/it_url.class @@ -747,7 +747,7 @@ static function absolute($url=null) if (!isset($url)) $url = $_SERVER['PHP_SELF']; - if (!preg_match('/^http/', $url)) + if (!preg_match('/^\w+:/', $url)) { if (!preg_match('#^//#', $url)) { -- cgit v1.2.3