Code

Reflect config change from 'referral url' 'referral uri'
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Sep 2008 09:35:51 +0000 (09:35 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 23 Sep 2008 09:35:51 +0000 (09:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@12540 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_config.inc

index ddc26fcf35dd01229e1386554c784406d2402f1f..fb0cacbcec3fd7f42ce5f115f9433eb1a9b53782 100644 (file)
@@ -188,7 +188,7 @@ class config  {
                   /* Handle referral tags */
       case 'REFERRAL':
                   if ($this->tags[$this->level-2] == 'LOCATION'){
-                    $url= $attrs['URL'];
+                    $url= $attrs['URI'];
                     $server= preg_replace('!^([^:]+://[^/]+)/.*$!', '\\1', $url);
 
                     /* Add location elements */
@@ -335,8 +335,8 @@ class config  {
       $bases= array();
       $servers= array();
       foreach ($this->current['REFERRAL'] as $ref){
-        $server= preg_replace('%^(.*)/[^/]+$%', '\\1', $ref['URL']);
-        $base= preg_replace('%^.*/([^/]+)$%', '\\1', $ref['URL']);
+        $server= preg_replace('%^(.*)/[^/]+$%', '\\1', $ref['URI']);
+        $base= preg_replace('%^.*/([^/]+)$%', '\\1', $ref['URI']);
         $bases[$base]= strlen($base);
         $servers[$base]= $server;
       }