From faff3aaaa6ef62b38601997336cad8a2cd51dba3 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Tue, 17 Dec 2013 18:04:26 +0100 Subject: [PATCH] Don't index PHOTO and truncate value to 254 chars. Fixes #306 --- lib/utils/properties.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/utils/properties.php b/lib/utils/properties.php index cdf42d50..91429bf8 100644 --- a/lib/utils/properties.php +++ b/lib/utils/properties.php @@ -57,7 +57,7 @@ Class Properties { */ public static $index_properties = array( 'BDAY', 'UID', 'N', 'FN', 'TITLE', 'ROLE', 'NOTE', 'NICKNAME', - 'ORG', 'CATEGORIES', 'EMAIL', 'TEL', 'IMPP', 'ADR', 'URL', 'GEO', 'PHOTO'); + 'ORG', 'CATEGORIES', 'EMAIL', 'TEL', 'IMPP', 'ADR', 'URL', 'GEO'); /** * Get options for IMPP properties @@ -266,7 +266,7 @@ Class Properties { \OCP\User::getUser(), $contactid, $property->name, - $property->value, + substr($property->value, 0, 254), $preferred, ) );