Changeset 93af155 in github
- Timestamp:
- Jul 20, 2009 7:09:02 AM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 6955c70
- Parents:
- 3b7e00f
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_vcard.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r503e019 r93af155 2 2 =========================== 3 3 4 - Fix import of vCard entries with params (#1485453) 4 5 - Fix HTML messages output with empty block elements (#1485974) 5 6 - Added hook when killing a session -
program/include/rcube_vcard.php
r23a2eec r93af155 265 265 266 266 if (!preg_match('/^(BEGIN|END)$/i', $line[1]) && preg_match_all('/([^\\;]+);?/', $line[1], $regs2)) { 267 $entry = array( '');267 $entry = array(); 268 268 $field = strtoupper($regs2[1][0]); 269 269 … … 271 271 if ((list($key, $value) = explode('=', $attr)) && $value) { 272 272 if ($key == 'ENCODING') { 273 #add next line(s) to value string if QP line end detected273 // add next line(s) to value string if QP line end detected 274 274 while ($value == 'QUOTED-PRINTABLE' && preg_match('/=$/', $lines[$i])) 275 275 $line[2] .= "\n" . $lines[++$i]; … … 281 281 } 282 282 else if ($attrid > 0) { 283 $entry[$key] = true; #true means attr without =value283 $entry[$key] = true; // true means attr without =value 284 284 } 285 285 } 286 286 287 $entry [0] = self::vcard_unquote($line[2]);287 $entry = array_merge($entry, (array)self::vcard_unquote($line[2])); 288 288 $data[$field][] = count($entry) > 1 ? $entry : $entry[0]; 289 289 } … … 291 291 292 292 unset($data['VERSION']); 293 294 293 return $data; 295 294 } … … 361 360 $value[] = $attrvalues; 362 361 elseif ($attrvalues === true) 363 $attr .= ";$attrname"; #true means just tag, not tag=value, as in PHOTO;BASE64:...362 $attr .= ";$attrname"; // true means just tag, not tag=value, as in PHOTO;BASE64:... 364 363 else { 365 364 foreach((array)$attrvalues as $attrvalue)
Note: See TracChangeset
for help on using the changeset viewer.
