summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
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 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";