diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php
index 896a9e463a8..593fbccaa49 100644
--- a/program/include/rcmail_output_html.php
+++ b/program/include/rcmail_output_html.php
@@ -2735,7 +2735,7 @@ protected function add_csp_header(): void
$csp_parts[] = $csp_allow_remote;
}
}
- $this->header("Content-Security-Policy: " . join('; ', $csp_parts));
+ $this->header("Content-Security-Policy: " . implode('; ', $csp_parts));
}
}
@@ -2745,6 +2745,7 @@ protected function add_csp_header(): void
* default second argument to trim(), too).
*
* @param $name string The key of the wanted config value
+ *
* @return string|false
*/
protected function get_csp_value($name)