summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b39468b)
raw | patch | inline | side by side (parent: b39468b)
author | lhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 4 Feb 2010 15:34:22 +0000 (15:34 +0000) | ||
committer | lhm-gosa <lhm-gosa@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 4 Feb 2010 15:34:22 +0000 (15:34 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15589 594d385d-05f5-0310-b6e9-bd551577e9d8
trunk/gosa-core/include/class_config.inc | patch | blob | history |
index 9de15a949eb3e3425a3b6bbe69d1eb69c6500c99..2338ce7aac8ffd84a71e65bcbabd1b2f44218dc3 100644 (file)
$bases= array();
$servers= array();
foreach ($this->current['REFERRAL'] as $ref){
- $server= preg_replace('%^(.*)/[^/]+$%', '\\1', $ref['URI']);
- $base= preg_replace('%^.*/([^/]+)$%', '\\1', $ref['URI']);
+ $server= preg_replace('%^(.*://[^/]+)/.*$%', '\\1', $ref['URI']);
+ $base= preg_replace('%^.*://[^/]+/(.*)$%', '\\1', $ref['URI']);
$bases[$base]= strlen($base);
$servers[$base]= $server;
}