diff --git a/webui/model/search/search.php b/webui/model/search/search.php index cea3ac0c..1e92c4f3 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -63,12 +63,12 @@ class ModelSearchSearch extends Model { if(Registry::get('auditor_user') == 1) { if(RESTRICTED_AUDITOR == 1) { - $session_domains = $this->fix_email_address_for_sphinx($session->get('auditdomains')); + $session_domains = $session->get('auditdomains'); $sd = $this->fix_email_address_for_sphinx($session->get('domain')); foreach ($session_domains as $d) { - if($d) { $sd .= '|' . $d; } + if($d) { $sd .= '|' . $this->fix_email_address_for_sphinx($d); } } $sd = preg_replace("/^\|/", "", $sd);