Mercurial > hg > rc2
comparison program/lib/Roundcube/rcube_vcard.php @ 27:c32b53434b47
more compensation for deprecated empty cases
| author | Charlie Root |
|---|---|
| date | Sun, 18 Jan 2026 14:20:29 -0500 |
| parents | bea5a38be938 |
| children |
comparison
equal
deleted
inserted
replaced
| 25:bea5a38be938 | 27:c32b53434b47 |
|---|---|
| 542 public static function cleanup($vcard) | 542 public static function cleanup($vcard) |
| 543 { | 543 { |
| 544 // convert Apple X-ABRELATEDNAMES into X-* fields for better compatibility | 544 // convert Apple X-ABRELATEDNAMES into X-* fields for better compatibility |
| 545 $vcard = preg_replace_callback( | 545 $vcard = preg_replace_callback( |
| 546 '/item(\d+)\.(X-ABRELATEDNAMES)([^:]*?):(.*?)item\1.X-ABLabel:(?:_\$!<)?([\w\-() ]*)(?:>!\$_)?./s', | 546 '/item(\d+)\.(X-ABRELATEDNAMES)([^:]*?):(.*?)item\1.X-ABLabel:(?:_\$!<)?([\w\-() ]*)(?:>!\$_)?./s', |
| 547 array('self', 'x_abrelatednames_callback'), | 547 array('rcube_vcard', 'x_abrelatednames_callback'), |
| 548 $vcard); | 548 $vcard); |
| 549 | 549 |
| 550 // Cleanup | 550 // Cleanup |
| 551 $vcard = preg_replace(array( | 551 $vcard = preg_replace(array( |
| 552 // convert special types (like Skype) to normal type='skype' classes with this simple regex ;) | 552 // convert special types (like Skype) to normal type='skype' classes with this simple regex ;) |
