From 34e5f61585cc5f510d41e5c30b0797ced75fdf53 Mon Sep 17 00:00:00 2001 From: lhm-gosa Date: Thu, 4 Feb 2010 15:34:22 +0000 Subject: [PATCH] Allow '/' in Base-DN config (#4192) 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/gosa-core/include/class_config.inc b/trunk/gosa-core/include/class_config.inc index 9de15a949..2338ce7aa 100644 --- a/trunk/gosa-core/include/class_config.inc +++ b/trunk/gosa-core/include/class_config.inc @@ -381,8 +381,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