aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBenjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>2023-11-16 02:50:09 +0100
committerGitHub <noreply@github.com>2023-11-16 02:50:09 +0100
commitae31d0321715deac7f2f5db3253f75d58deecf4e (patch)
tree6319dbf475e2f36295e11691bdbd935abaacd433 /core
parent0d4ece537ab667925d6f1aa0a155610e9bc9e063 (diff)
parent33837e7d6fb57d657a197a4f49549d919b1ebc62 (diff)
downloadnextcloud-server-ae31d0321715deac7f2f5db3253f75d58deecf4e.tar.gz
nextcloud-server-ae31d0321715deac7f2f5db3253f75d58deecf4e.zip
Merge pull request #41486 from nextcloud/fix/41470/invalid_user_group
Fix invalid users/groups handling in advanced search
Diffstat (limited to 'core')
-rw-r--r--core/Controller/UnifiedSearchController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Controller/UnifiedSearchController.php b/core/Controller/UnifiedSearchController.php
index 87aa84e1d91..5ae99c6a076 100644
--- a/core/Controller/UnifiedSearchController.php
+++ b/core/Controller/UnifiedSearchController.php
@@ -28,6 +28,7 @@ declare(strict_types=1);
*/
namespace OC\Core\Controller;
+use InvalidArgumentException;
use OC\Search\SearchComposer;
use OC\Search\SearchQuery;
use OCA\Core\ResponseDefinitions;
@@ -111,7 +112,7 @@ class UnifiedSearchController extends OCSController {
try {
$filters = $this->composer->buildFilterList($providerId, $this->request->getParams());
- } catch (UnsupportedFilter $e) {
+ } catch (UnsupportedFilter|InvalidArgumentException $e) {
return new DataResponse($e->getMessage(), Http::STATUS_BAD_REQUEST);
}
return new DataResponse(