From: hickert Date: Wed, 18 Jun 2008 08:38:49 +0000 (+0000) Subject: Fixed problem with evil XML tags in location name. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=76a1d2a8e31c487a4285aa97766908d0c17ff204;p=gosa.git 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"; }