Revision f7ca9674
Added by Jim Pingle almost 10 years ago
usr/local/www/vpn_openvpn_client.php | ||
---|---|---|
758 | 758 |
if ($pconfig['caref'] == $ca['refid']) |
759 | 759 |
$selected = "selected=\"selected\""; |
760 | 760 |
?> |
761 |
<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=$ca['descr'];?></option>
|
|
761 |
<option value="<?=$ca['refid'];?>" <?=$selected;?>><?=htmlspecialchars($ca['descr']);?></option>
|
|
762 | 762 |
<?php endforeach; ?> |
763 | 763 |
</select> |
764 | 764 |
<?php else: ?> |
... | ... | |
778 | 778 |
$revoked = ""; |
779 | 779 |
$ca = lookup_ca($cert['caref']); |
780 | 780 |
if ($ca) |
781 |
$caname = " (CA: {$ca['descr']})";
|
|
781 |
$caname = " (CA: " . htmlspecialchars($ca['descr']) . ")";
|
|
782 | 782 |
if ($pconfig['certref'] == $cert['refid']) |
783 | 783 |
$selected = "selected=\"selected\""; |
784 | 784 |
if (cert_in_use($cert['refid'])) |
... | ... | |
786 | 786 |
if (is_cert_revoked($cert)) |
787 | 787 |
$revoked = " *Revoked"; |
788 | 788 |
?> |
789 |
<option value="<?=$cert['refid'];?>" <?=$selected;?>><?=$cert['descr'] . $caname . $inuse . $revoked;?></option>
|
|
789 |
<option value="<?=$cert['refid'];?>" <?=$selected;?>><?=htmlspecialchars($cert['descr']) . $caname . $inuse . $revoked;?></option>
|
|
790 | 790 |
<?php endforeach; ?> |
791 | 791 |
<option value="" <?PHP if (empty($pconfig['certref'])) echo "selected=\"selected\""; ?>>None (Username and/or Password required)</option> |
792 | 792 |
</select> |
Also available in: Unified diff
Encode ca/cert descr in vpn_openvpn_client.php