Empty ENCODING and CHARSET

This commit is contained in:
Jörg Lehrke 2009-07-18 18:00:39 +00:00
parent e9a7336a35
commit 91f0b9ad9d

View File

@ -891,9 +891,12 @@ class Horde_iCalendar {
if ($params) {
foreach ($params as $param_name => $param_value) {
/* Skip CHARSET for iCalendar 2.0 data, not allowed. */
if ($param_name == 'CHARSET' && !$this->isOldFormat()) {
if ($param_name == 'CHARSET' && (!$this->isOldFormat() || empty($param_value))) {
continue;
}
if ($param_name == 'ENCODING' && empty($param_value)) {
continue;
}
/* Skip VALUE=DATE for vCalendar 1.0 data, not allowed. */
if ($this->isOldFormat() &&
$param_name == 'VALUE' && $param_value == 'DATE') {