Skip to content

Commit 2bff53e

Browse files
committed
Minor fixes for Sending mail credentials to email
1 parent 8c1deb8 commit 2bff53e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

web/add/mail/index.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
$v_fwd = $_POST['v_fwd'];
113113
if (empty($_POST['v_quota'])) $v_quota = 0;
114114
if ((!empty($_POST['v_quota'])) || (!empty($_POST['v_aliases'])) || (!empty($_POST['v_fwd'])) ) $v_adv = 'yes';
115-
$v_quota = escapeshellarg($_POST['v_quota']);
116115

117116
// Add Mail Account
118117
if (empty($_SESSION['error_msg'])) {

web/templates/admin/add_mail_acc.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,15 @@
196196
<td><?=__('SMTP auth method')?>:</td>
197197
<td><div><?=__('Normal password')?></div></td>
198198
</tr>
199-
<?
200-
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
201-
$webmail = "http://".$http_host."/webmail/";
202-
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
203-
?>
199+
<?
200+
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
201+
$webmail = "http://".$http_host."/webmail/";
202+
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
203+
?>
204204
<tr>
205205
<td><?=__('Webmail URL')?>:</td>
206206
<td><div><a class="vst" href="<?=$webmail?>" target="_blank"><?=$webmail?> <i></i></a></div></td>
207-
</tr>
207+
</tr>
208208
</table>
209209
</div>
210210
</td>

0 commit comments

Comments
 (0)