Changeset 4781 in subversion


Ignore:
Timestamp:
May 18, 2011 6:15:12 AM (2 years ago)
Author:
thomasb
Message:

Fix vcard value decoding; add setter for individual vcard fields

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_vcard.php

    r4765 r4781  
    332332  } 
    333333 
     334  /** 
     335   * Setter for individual vcard properties 
     336   * 
     337   * @param string VCard tag name 
     338   * @param array Value-set of this vcard property 
     339   * @param boolean Set to true if the value-set should be appended instead of replacing any existing value-set 
     340   */ 
     341  public function set_raw($tag, $value, $append = false) 
     342  { 
     343    $index = $append ? count($this->raw[$tag]) : 0; 
     344    $this->raw[$tag][$index] = (array)$value; 
     345  } 
     346 
    334347 
    335348  /** 
     
    652665    } 
    653666    else { 
    654       return strtr($s, array("\r" => '', '\\\\' => '\\', '\n' => "\n", '\N' => "\n", '\,' => ',', '\;' => ';')); 
     667      return strtr($s, array("\r" => '', '\\\\' => '\\', '\n' => "\n", '\N' => "\n", '\,' => ',', '\;' => ';', '\:' => ':')); 
    655668    } 
    656669  } 
Note: See TracChangeset for help on using the changeset viewer.