From f2bfdfdeddea86784ce2d17b3c35e46a1c582b79 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Wed, 21 Dec 2016 23:35:54 -0800 Subject: provide separate logging (if configured) for btlogger which is used to catch really subtle issues which don't always leave an audit trail. Similar to dbfail.out, the file btlogger.out (if it exists and is write-able) will only log these unusual situations with backtraces so we can find the culprits. --- include/connections.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/connections.php') diff --git a/include/connections.php b/include/connections.php index 44003bc93..31e941e95 100644 --- a/include/connections.php +++ b/include/connections.php @@ -634,6 +634,18 @@ function update_vcard($arr,$vcard = null) { $fn = $arr['fn']; + + // This isn't strictly correct and could be a cause for concern. + // 'N' => array_reverse(explode(' ', $fn)) + + + // What we really want is + // 'N' => Adams;John;Quincy;Reverend,Dr.;III + // which is a very difficult parsing problem especially if you allow + // the surname to contain spaces. The only way to be sure to get it + // right is to provide a form to input all the various fields and not + // try to extract it from the FN. + if(! $vcard) { $vcard = new \Sabre\VObject\Component\VCard([ 'FN' => $fn, -- cgit v1.2.3