From 0d53df3a4de01602e646c8230beac058bec3cc3f Mon Sep 17 00:00:00 2001 From: Kristian Feldsam Date: Thu, 2 Sep 2021 19:30:14 +0200 Subject: [PATCH] [Web] PHP8 fix, fixes #4259 (#4261) Signed-off-by: Kristian Feldsam --- data/web/debug.php | 2 +- data/web/inc/functions.rspamd.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/debug.php b/data/web/debug.php index 39340a30..14ca8c17 100644 --- a/data/web/debug.php +++ b/data/web/debug.php @@ -39,7 +39,7 @@ $clamd_status = (preg_match("/^([yY][eE][sS]|[yY])+$/", $_ENV["SKIP_CLAMD"])) ?
'system', 'task' => 'df', 'dir' => '/var/vmail'); - $vmail_df = explode(',', json_decode(docker('post', 'dovecot-mailcow', 'exec', $exec_fields), true)); + $vmail_df = explode(',', (string)json_decode(docker('post', 'dovecot-mailcow', 'exec', $exec_fields), true)); ?>
diff --git a/data/web/inc/functions.rspamd.inc.php b/data/web/inc/functions.rspamd.inc.php index bdc23b08..fd1c5bd6 100644 --- a/data/web/inc/functions.rspamd.inc.php +++ b/data/web/inc/functions.rspamd.inc.php @@ -77,7 +77,7 @@ function rsettings($_action, $_data = null) { $_SESSION['return'][] = array( 'type' => 'success', 'log' => array(__FUNCTION__, $_action, $_data_log), - 'msg' => array('object_modified', htmlspecialchars($ids)) + 'msg' => array('object_modified', htmlspecialchars(implode(',', $ids))) ); } break;