summaryrefslogtreecommitdiff
path: root/program/include/rcube_shared.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-09-26 11:17:03 +0000
committerthomascube <thomas@roundcube.net>2010-09-26 11:17:03 +0000
commit8603bbba2e0bb3dfe171c0241bf97ab7ef9575fc (patch)
tree9278d085835bdffddb1854643eb502530e52839f /program/include/rcube_shared.inc
parent0911facde954d60ca3124e03b85b3b9b47c3c6b0 (diff)
Fix base url resolution + better order for condition checks in rcube_mdb2 + updated changelog
Diffstat (limited to 'program/include/rcube_shared.inc')
-rw-r--r--program/include/rcube_shared.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_shared.inc b/program/include/rcube_shared.inc
index 429969eb7..575a28ae0 100644
--- a/program/include/rcube_shared.inc
+++ b/program/include/rcube_shared.inc
@@ -227,7 +227,7 @@ function make_absolute_url($path, $base_url)
// cut base_url to the last directory
if (strrpos($base_url, '/')>7)
{
- $host_url = substr($base_url, 0, strpos($base_url, '/'));
+ $host_url = substr($base_url, 0, strpos($base_url, '/', 7));
$base_url = substr($base_url, 0, strrpos($base_url, '/'));
}