patches from JVL and some debug output removed

This commit is contained in:
Lars Kneschke 2006-01-22 17:59:06 +00:00
parent f154645215
commit 785391f71d
2 changed files with 14 additions and 4 deletions

View File

@ -799,7 +799,11 @@ class Horde_iCalendar {
. $this->_quotedPrintableEncode($value)
. $this->_newline;
} else {
$attr_string = "$name$params_str:$value";
# JVL: prevent : for empty values
# $attr_string = "$name$params_str:$value";
$attr_string = "$name$params_str";
$attr_string .= (!empty($value)) ? ":$value" : ';';
$result .= $this->_foldLine($attr_string) . $this->_newline;
}
}
@ -1132,6 +1136,12 @@ class Horde_iCalendar {
$line = (strlen($line) <= $cutPoint)
? ''
: substr($line, $cutPoint);
if (strlen($line) < 75) {
$foldedline .= $this->_newline . ' ' . $line;
$line = '';
}
}
return $foldedline;
}

View File

@ -180,7 +180,7 @@ class XML_WBXML_Decoder extends XML_WBXML_ContentHandler {
}
$this->_attributeDTD = $this->_tagDTD;
print "starting at: ".$this->_strpos."\n";
while (empty($this->_error) && $this->_strpos < strlen($wbxml)) {
$this->_decode($wbxml);
}