mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
probable fix for #556 - see if CONF[site_url] is a string before trying to use it
This commit is contained in:
parent
26706c5dda
commit
540b32f1a0
@ -2392,7 +2392,7 @@ function getRemoteAddr()
|
||||
*/
|
||||
function getSiteUrl(array $server = []): string
|
||||
{
|
||||
if (Config::has('site_url')) {
|
||||
if (is_string(Config::read('site_url'))) {
|
||||
$url = Config::read_string('site_url');
|
||||
if (!empty($url)) {
|
||||
return $url;
|
||||
|
Loading…
Reference in New Issue
Block a user