From 76e540fb0ad1bc1b690bfb35e1349b9dd5ba1eb5 Mon Sep 17 00:00:00 2001 From: Florian Schlichting Date: Sat, 8 Apr 2017 21:59:35 +0200 Subject: [PATCH] cardquery: typo, ends-with has wildcard in front --- inc/caldav-REPORT-cardquery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-REPORT-cardquery.php b/inc/caldav-REPORT-cardquery.php index 9c6c2b1e..5f54494a 100644 --- a/inc/caldav-REPORT-cardquery.php +++ b/inc/caldav-REPORT-cardquery.php @@ -151,7 +151,7 @@ function SqlFilterCardDAV( $filter, $components, $property = null, $parameter = $search = $search.'%'; break; case 'ends-with': - $search = $search.'%'; + $search = '%'.$search; break; case 'contains': default: