Changeset c56f1f5 in github


Ignore:
Timestamp:
Aug 4, 2010 4:15:17 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
17c54aa
Parents:
367da9c
Message:
  • Support vCards without or with an empty FN
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_vcard.php

    r5570ad6 rc56f1f5  
    8686      $this->email[0] = $this->email[$pref_index]; 
    8787      $this->email[$pref_index] = $tmp; 
     88    } 
     89 
     90    // make sure displayname is not empty (required by RFC2426) 
     91    if (!strlen($this->displayname)) { 
     92      // the same method is used in steps/mail/addcontact.inc 
     93      $this->displayname = ucfirst(preg_replace('/[\.\-]/', ' ', 
     94        substr($this->email[0], 0, strpos($this->email[0], '@')))); 
    8895    } 
    8996  } 
Note: See TracChangeset for help on using the changeset viewer.