Skip to content

Commit 8e4d686

Browse files
committed
Fix bug when saved incorrect value was selected
1 parent 24ea17a commit 8e4d686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/templates/pages/edit_mail.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@
7676
<select class="vst-list" name="v_webmail" tabindex="6">
7777
<?php foreach ($webmail_clients as $client){
7878
echo "\t\t\t\t<option value=\"".htmlentities($client)."\"";
79-
if (( $v_webmail == $client )) {
79+
if (( htmlentities(trim($v_webmail,"'")) == $client )) {
8080
echo ' selected' ;
8181
}
8282
echo ">".htmlentities(ucfirst($client))."</option>\n";
8383
}
8484
?>
85-
<option value="disabled" <?php if ( empty($v_webmail) || ($v_webmail == 'disabled')) { echo "selected";}?>><?=_('Disabled');?></option>
85+
<option value="disabled" <?php if (htmlentities(trim($v_webmail,"'")) == 'disabled') { echo "selected";}?>><?=_('Disabled');?></option>
8686
</select>
8787
</td>
8888
</tr>

0 commit comments

Comments
 (0)