index ebb2e73ec0059154773e8e8e767ba1d5817621b4..db862c0f887929ba03f86b9105f767b07d44d86f 100644 (file)
case 'LOCATION':
if ($this->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 */
function set_current($name)
{
$this->current= $this->data['LOCATIONS'][$name];
+
if (!isset($this->current['PEOPLE'])){
$this->current['PEOPLE']= "ou=people";
}