From 84d37143b0acc1f8b9f06e7609d31f3452ffa555 Mon Sep 17 00:00:00 2001
From: Joas Schilling <coding@schilljs.com>
Date: Wed, 8 Dec 2021 16:40:39 +0100
Subject: Only wildcard search if enumeration is allowed

Signed-off-by: Joas Schilling <coding@schilljs.com>
---
 lib/public/Contacts/IManager.php | 1 +
 lib/public/IAddressBook.php      | 1 +
 2 files changed, 2 insertions(+)

(limited to 'lib/public')

diff --git a/lib/public/Contacts/IManager.php b/lib/public/Contacts/IManager.php
index 8d24249e997..6bf569e9bbd 100644
--- a/lib/public/Contacts/IManager.php
+++ b/lib/public/Contacts/IManager.php
@@ -93,6 +93,7 @@ interface IManager {
 	 * 	- 'escape_like_param' - If set to false wildcards _ and % are not escaped
 	 * 	- 'limit' - Set a numeric limit for the search results
 	 * 	- 'offset' - Set the offset for the limited search results
+	 * 	- 'wildcard' - Whether the search should use wildcards
 	 * @return array an array of contacts which are arrays of key-value-pairs
 	 * @since 6.0.0
 	 */
diff --git a/lib/public/IAddressBook.php b/lib/public/IAddressBook.php
index b0196764be3..738745376d3 100644
--- a/lib/public/IAddressBook.php
+++ b/lib/public/IAddressBook.php
@@ -67,6 +67,7 @@ namespace OCP {
 		 * 	- 'escape_like_param' - If set to false wildcards _ and % are not escaped
 		 * 	- 'limit' - Set a numeric limit for the search results
 		 * 	- 'offset' - Set the offset for the limited search results
+		 * 	- 'wildcard' - Whether the search should use wildcards
 		 * @return array an array of contacts which are arrays of key-value-pairs
 		 *  example result:
 		 *  [
-- 
cgit v1.2.3