diff --git a/interface/web/mail/mailinglist.php b/interface/web/mail/mailinglist.php index 6ef779cbd61f7d3e6459cab3c696374fba15547a..2b24e4ee510271291ba3edf5dac2dc838dea45ca 100644 --- a/interface/web/mail/mailinglist.php +++ b/interface/web/mail/mailinglist.php @@ -43,7 +43,7 @@ $listId = $app->functions->intval($_GET['id']); /* * Get the data to connect to the database */ -$dbData = $app->db->queryAllRecords("SELECT server_id, listname FROM mail_mailinglist WHERE mailinglist_id = " . $listId); +$dbData = $app->db->queryAllRecords("SELECT server_id, listname, domain FROM mail_mailinglist WHERE mailinglist_id = " . $listId); $serverId = $app->functions->intval($dbData[0]['server_id']); if ($serverId == 0){ die ("No List - Server found!"); @@ -62,7 +62,7 @@ if($global_config['mailmailinglist_url'] != '') { * We only redirect to the login-form, so there is no need, to check any rights */ isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http'; - header('Location:' . $http . '://' . $serverData['server_name'] . '/cgi-bin/mailman/admin/' . $dbData[0]['listname']); + header('Location:' . $http . '://' . $dbData[0]['domain'] . '/cgi-bin/mailman/admin/' . $dbData[0]['listname']); } exit; -?> +?> \ No newline at end of file