You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
probable fix for #556 - see if CONF[site_url] is a string before trying to use it
This commit is contained in:
@ -2392,7 +2392,7 @@ function getRemoteAddr()
|
|||||||
*/
|
*/
|
||||||
function getSiteUrl(array $server = []): string
|
function getSiteUrl(array $server = []): string
|
||||||
{
|
{
|
||||||
if (Config::has('site_url')) {
|
if (is_string(Config::read('site_url'))) {
|
||||||
$url = Config::read_string('site_url');
|
$url = Config::read_string('site_url');
|
||||||
if (!empty($url)) {
|
if (!empty($url)) {
|
||||||
return $url;
|
return $url;
|
||||||
|
Reference in New Issue
Block a user