1 --- a/lib/Kolab/FreeBusy/Directory.php 2 +++ b/lib/Kolab/FreeBusy/Directory.php 3 @@ -53,7 +53,7 @@ 4 $fbsource = $this->config['fbsource']; 5 if ($source = Source::Factory($fbsource)) { 6 // forward request to Source instance 7 - if ($data = $source->getFreeBusyData($user, $extended)) { 8 + if ($data = $source->getFreeBusyData($this->postprocessAttrib($user), $extended)) { 9 // send data through the according format converter 10 $converter = Format::factory($this->config['format']); 11 $data = $converter->toVCalendar($data); 12 @@ -66,4 +66,19 @@ 13 return false; 14 } 15 16 + /** 17 + * Modify attribute values according to config 18 + */ 19 + protected function postprocessAttrib($attrib) 20 + { 21 + if (!empty($this->config['lc_attributes'])) { 22 + foreach ((array)$this->config['lc_attributes'] as $key) { 23 + if (!empty($attrib[$key])) 24 + $attrib[$key] = strtolower($attrib[$key]); 25 + } 26 + } 27 + 28 + return $attrib; 29 + } 30 + 31 } 32 \ No newline at end of file