From a968f52dcd45629e261efe8d8a693cb7db497308 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 6 Nov 2021 09:09:19 +0100 Subject: [PATCH] Fix PHP8 warnings (#8286) --- program/include/rcmail.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/include/rcmail.php b/program/include/rcmail.php index f12fabc28..da3f94eea 100644 --- a/program/include/rcmail.php +++ b/program/include/rcmail.php @@ -757,7 +757,7 @@ class rcmail extends rcube } else if (strpos($username, '@')) { // lowercase domain name - list($local, $domain) = explode('@', $username); + list($local, $domain) = rcube_utils::explode('@', $username); $username = $local . '@' . mb_strtolower($domain); } } @@ -976,7 +976,7 @@ class rcmail extends rcube $post_host = rcube_utils::get_input_string('_host', rcube_utils::INPUT_POST); $post_user = rcube_utils::get_input_string('_user', rcube_utils::INPUT_POST); - list(, $domain) = explode('@', $post_user); + list(, $domain) = rcube_utils::explode('@', $post_user); // direct match in default_host array if ($default_host[$post_host] || in_array($post_host, array_values($default_host))) {