From: cajus Date: Fri, 5 Feb 2010 13:51:35 +0000 (+0000) Subject: Be not that picky with uri inspection. Closes #15589 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ad8a7fb9b914e51093c730850aa24cecc78b4a8c;p=gosa.git Be not that picky with uri inspection. Closes #15589 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15595 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 8a87aa3f9..dd922df96 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -391,8 +391,8 @@ class config { $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; }