summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
authorUrban Müller2014-10-03 14:57:38 +0200
committerUrban Müller2014-10-03 14:57:38 +0200
commit8e6225c837c7025bf2d1ffa84c8cf16f60e5705b (patch)
tree567690ec57c38dcbf432237039574737a209dfed /it_url.class
parent7319211524a47bafcc609ddc8cd9946946ac7b56 (diff)
downloaditools-8e6225c837c7025bf2d1ffa84c8cf16f60e5705b.tar.gz
itools-8e6225c837c7025bf2d1ffa84c8cf16f60e5705b.tar.bz2
itools-8e6225c837c7025bf2d1ffa84c8cf16f60e5705b.zip
allow any protocol in it_url::absolute()
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
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))
{