From ad8a7fb9b914e51093c730850aa24cecc78b4a8c Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 5 Feb 2010 13:51:35 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_config.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2