mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Case insensitive check for vCard BEGIN & END flags fixes lowercase vcards would not import
https://tools.ietf.org/id/draft-ietf-vcarddav-vcardrev-02.html#anchor3
This commit is contained in:
parent
818d62ba5e
commit
b1cb9c10ef
@ -227,7 +227,7 @@ class IcalIterator extends Horde_Icalendar implements \Iterator
|
||||
{
|
||||
unset($this->component);
|
||||
|
||||
while (($line = $this->read_line()) && substr($line,0,6) !== 'BEGIN:')
|
||||
while (($line = $this->read_line()) && strcasecmp(substr($line,0,6), 'BEGIN:')!==0)
|
||||
{
|
||||
error_log("'".$line."'");
|
||||
// ignore it
|
||||
@ -242,7 +242,7 @@ class IcalIterator extends Horde_Icalendar implements \Iterator
|
||||
//error_log(__METHOD__."() found $type component");
|
||||
|
||||
$data = $line;
|
||||
while (($line = $this->read_line()) && substr($line,0,4+strlen($type)) !== 'END:'.$type)
|
||||
while (($line = $this->read_line()) && strcasecmp(substr($line,0,4+strlen($type)), 'END:'.$type) !== 0)
|
||||
{
|
||||
$data .= $line;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user