Skip to content

Commit f742c99

Browse files
WEB. additions to fix hestiacp#915
1 parent 6ad6c0d commit f742c99

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

web/templates/admin/edit_mail_acc.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
</tr>
6666
<tr>
6767
<td>
68-
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities($v_password)?>">
68+
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities(trim($v_password, "'"))?>">
6969
</td>
7070
</tr>
7171
<tr>
@@ -109,7 +109,7 @@
109109
<label><input type="checkbox" size="20" class="vst-checkbox" name="v_autoreply" <?php if ($v_autoreply == 'yes') echo "checked=yes" ?> onclick="javascript:elementHideShow('autoreplytable');"> <?php print __('Autoreply');?></label>
110110
</td>
111111
</tr>
112-
<tr>%20autofocuse=true%20onFocus=%27alert%28123%29%27%20x=%27%20autofocuse=true%20onFocus=%27alert%28123%29%27%20x=%27
112+
<tr>
113113
<td class="step-left">
114114
<table style="display:<?php if ($v_autoreply == 'yes') { echo 'block';} else {echo 'none';}?> ;" id="autoreplytable">
115115
<tr>
@@ -192,15 +192,15 @@
192192
<td><?=__('SMTP auth method')?>:</td>
193193
<td><div><?=__('Normal password')?></div></td>
194194
</tr>
195-
<?
196-
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
197-
$webmail = "http://".$http_host."/webmail/";
198-
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
199-
?>
195+
<?
196+
list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"].":");
197+
$webmail = "http://".$http_host."/webmail/";
198+
if (!empty($_SESSION['MAIL_URL'])) $webmail = $_SESSION['MAIL_URL'];
199+
?>
200200
<tr>
201201
<td><?=__('Webmail URL')?>:</td>
202202
<td><div><a class="vst" href="<?=$webmail?>" target="_blank"><?=$webmail?> <i></i></a></div></td>
203-
</tr>
203+
</tr>
204204
</table>
205205
</div>
206206
</td>

web/templates/admin/edit_user.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</tr>
6565
<tr>
6666
<td>
67-
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities($v_password)?>">
67+
<input type="text" size="20" class="vst-input password" name="v_password" value="<?=htmlentities(trim($v_password, "'"))?>">
6868
</td>
6969
</tr>
7070
<tr>

web/templates/admin/generate_ssl.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
</tr>
5555
<tr>
5656
<td>
57-
<input type="text" size="20" class="vst-input" name="v_domain" value="<?php print htmlentities($v_domain) ?>">
57+
<input type="text" size="20" class="vst-input" name="v_domain" value="<?=htmlentities(trim($v_domain, "'")) ?>">
5858
</td>
5959
</tr>
6060
<tr>
@@ -64,7 +64,7 @@
6464
</tr>
6565
<tr>
6666
<td>
67-
<input type="text" size="20" class="vst-input" name="v_email" value="<?php print htmlentities($v_email) ?>">
67+
<input type="text" size="20" class="vst-input" name="v_email" value="<?=htmlentities(trim($v_email, "'")) ?>">
6868
</td>
6969
</tr>
7070
<tr>
@@ -75,7 +75,7 @@
7575
</tr>
7676
<tr>
7777
<td>
78-
<input type="text" size="20" class="vst-input" name="v_country" value="<?php print htmlentities($v_country)?>">
78+
<input type="text" size="20" class="vst-input" name="v_country" value="<?=htmlentities(trim($v_country, "'"))?>">
7979
</td>
8080
</tr>
8181
<tr>
@@ -85,7 +85,7 @@
8585
</tr>
8686
<tr>
8787
<td>
88-
<input type="text" size="20" class="vst-input" name="v_state" value="<?php print htmlentities($v_state) ?>">
88+
<input type="text" size="20" class="vst-input" name="v_state" value="<?=htmlentities(trim($v_state, "'")) ?>">
8989
</td>
9090
</tr>
9191
<tr>
@@ -95,7 +95,7 @@
9595
</tr>
9696
<tr>
9797
<td>
98-
<input type="text" size="20" class="vst-input" name="v_locality" value="<?php print htmlentities($v_locality) ?>">
98+
<input type="text" size="20" class="vst-input" name="v_locality" value="<?=htmlentities(trim($v_locality, "'")) ?>">
9999
</td>
100100
</tr>
101101
<tr>
@@ -105,7 +105,7 @@
105105
</tr>
106106
<tr>
107107
<td>
108-
<input type="text" size="20" class="vst-input" name="v_org" value="<?php print htmlentities($v_org) ?>">
108+
<input type="text" size="20" class="vst-input" name="v_org" value="<?=htmlentities(trim($v_org, "'")) ?>">
109109
</td>
110110
</tr>
111111
</table>

0 commit comments

Comments
 (0)