From 76a1d2a8e31c487a4285aa97766908d0c17ff204 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 18 Jun 2008 08:38:49 +0000 Subject: [PATCH] Fixed problem with evil XML tags in location name. Characters like "'<> are not allowed in tags[$this->level-2] == 'MAIN'){ $name= $attrs['NAME']; + $name = preg_replace("/[<>\"']/","",$name); + $attrs['NAME'] = $name; $this->currentLocation= $name; /* Add location elements */ - $this->data['LOCATIONS'][$name]= $attrs; - } + $this->data['LOCATIONS'][$name]= $attrs; + } break; /* Handle referral tags */ @@ -268,6 +270,7 @@ class config { function set_current($name) { $this->current= $this->data['LOCATIONS'][$name]; + if (!isset($this->current['PEOPLE'])){ $this->current['PEOPLE']= "ou=people"; } -- 2.30.2