Skip to content

Commit b86a939

Browse files
author
Kristan Kenney
committed
Merge branch 'bugfix-webmail-alias' into develop
2 parents 9cce9eb + 9ca5f50 commit b86a939

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

web/add/mail/index.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@
170170
// Get webmail url
171171
if (empty($_SESSION['error_msg'])) {
172172
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
173-
$webmail = "http://".$http_host."/webmail/";
173+
$webmail = "http://".$hostname."/".$v_webmail_alias."/";
174174
if (!empty($_SESSION['WEBMAIL_ALIAS'])) $webmail = $_SESSION['WEBMAIL_ALIAS'];
175175
}
176176

@@ -187,7 +187,6 @@
187187
// Flush field values on success
188188
if (empty($_SESSION['error_msg'])) {
189189
$_SESSION['ok_msg'] = __('MAIL_ACCOUNT_CREATED_OK',htmlentities(strtolower($_POST['v_account'])),htmlentities($_POST[v_domain]),htmlentities(strtolower($_POST['v_account'])),htmlentities($_POST[v_domain]));
190-
$_SESSION['ok_msg'] .= " / <a href=".$webmail." target='_blank'>" . __('open webmail') . "</a>";
191190
unset($v_account);
192191
unset($v_password);
193192
unset($v_password);

web/templates/admin/add_mail_acc.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,7 @@
198198
</tr>
199199
<?
200200
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
201-
$webmail = "http://".$http_host."/webmail/";
202-
if (!empty($_SESSION['WEBMAIL_ALIAS'])) $webmail = $_SESSION['WEBMAIL_ALIAS'];
201+
$webmail = "http://webmail.".$v_domain."/";
203202
?>
204203
<tr>
205204
<td><?=__('Webmail URL')?>:</td>

web/templates/admin/edit_mail_acc.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@
205205
<?
206206
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
207207
$webmail = "http://webmail.".$v_domain."/";
208-
if (!empty($_SESSION['WEBMAIL_ALIAS'])) $webmail = $_SESSION['WEBMAIL_ALIAS'];
209208
?>
210209
<tr>
211210
<td><?=__('Webmail URL')?>:</td>

0 commit comments

Comments
 (0)