Encode ca/cert descr in vpn_ipsec_phase1.php

This commit is contained in:
jim-p 2015-07-01 11:15:13 -04:00
parent 2ce606e15a
commit f9e80e5d65

View File

@ -805,7 +805,7 @@ function dpdchkbox_change() {
if ($pconfig['certref'] == $cert['refid'])
$selected = "selected=\"selected\"";
?>
<option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'];?></option>
<option value="<?=$cert['refid'];?>" <?=$selected;?>><?=htmlspecialchars($cert['descr']);?></option>
<?php endforeach; ?>
</select>
<br />
@ -824,7 +824,7 @@ function dpdchkbox_change() {
if ($pconfig['caref'] == $ca['refid'])
$selected = "selected=\"selected\"";
?>
<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option>
<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=htmlspecialchars($ca['descr']);?></option>
<?php endforeach; ?>
</select>
<br />