From 573fd6286037c931c8548e308cef71328fd601e3 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 13 Jun 2023 21:12:33 +0200 Subject: [PATCH] Fixed model/search restricted auditor domain handling Signed-off-by: Janos SUTO --- webui/model/search/search.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index 1e92c4f3..87621f9e 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -65,7 +65,13 @@ class ModelSearchSearch extends Model { if(RESTRICTED_AUDITOR == 1) { $session_domains = $session->get('auditdomains'); - $sd = $this->fix_email_address_for_sphinx($session->get('domain')); + $sd = ""; + + $domains = $session->get('domain'); + foreach ($domains as $d) { + if($sd) { $sd .= '|'; } + $sd .= $this->fix_email_address_for_sphinx($d); + } foreach ($session_domains as $d) { if($d) { $sd .= '|' . $this->fix_email_address_for_sphinx($d); }