diff options
author | Christian Weber | 2013-07-15 16:24:24 +0000 |
---|---|---|
committer | Christian Weber | 2013-07-15 16:24:24 +0000 |
commit | 9d908d61e587b1b34347635bb22d133314d8093a (patch) | |
tree | 31b6df9083272e8f442fa1e6e70df6b2e428fed3 | |
parent | 9353e3407f798311ffc6c78ac2e0f21e3bb4b0c8 (diff) | |
download | itools-9d908d61e587b1b34347635bb22d133314d8093a.tar.gz itools-9d908d61e587b1b34347635bb22d133314d8093a.tar.bz2 itools-9d908d61e587b1b34347635bb22d133314d8093a.zip |
fix absolute() for urs like /foo//bar
-rw-r--r-- | it_url.class | 2 |
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"; |