mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fixed attributes cleanup in calendar_groupdav.post() and calendar_groupdav.put()
This commit is contained in:
parent
64c1c126c0
commit
cb106cf4f9
@ -869,12 +869,11 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
||||
array_shift($content_type);
|
||||
foreach ($content_type as $attribute)
|
||||
{
|
||||
trim($attribute);
|
||||
list($key, $value) = explode('=', $attribute);
|
||||
switch (strtolower($key))
|
||||
switch (strtolower(trim($key)))
|
||||
{
|
||||
case 'charset':
|
||||
$charset = strtoupper(substr($value,1,-1));
|
||||
$charset = strtoupper(trim($value));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1078,12 +1077,11 @@ class calendar_groupdav extends Api\CalDAV\Handler
|
||||
array_shift($content_type);
|
||||
foreach ($content_type as $attribute)
|
||||
{
|
||||
trim($attribute);
|
||||
list($key, $value) = explode('=', $attribute);
|
||||
switch (strtolower($key))
|
||||
switch (strtolower(trim($key)))
|
||||
{
|
||||
case 'charset':
|
||||
$charset = strtoupper(substr($value,1,-1));
|
||||
$charset = strtoupper(trim($value));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user