summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_openvpn_csc.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/vpn_openvpn_csc.php')
-rw-r--r--usr/local/www/vpn_openvpn_csc.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/vpn_openvpn_csc.php b/usr/local/www/vpn_openvpn_csc.php
index 0d12dfb..aebea01 100644
--- a/usr/local/www/vpn_openvpn_csc.php
+++ b/usr/local/www/vpn_openvpn_csc.php
@@ -45,8 +45,9 @@ if (!is_array($config['openvpn']['openvpn-csc']))
$a_csc = &$config['openvpn']['openvpn-csc'];
-$id = $_GET['id'];
-if (isset($_POST['id']))
+if (is_numericint($_GET['id']))
+ $id = $_GET['id'];
+if (isset($_POST['id']) && is_numericint($_POST['id']))
$id = $_POST['id'];
$act = $_GET['act'];
@@ -660,7 +661,7 @@ function netbios_change() {
<input name="save" type="submit" class="formbtn" value="<?=gettext("Save"); ?>"/>
<input name="act" type="hidden" value="<?=$act;?>"/>
<?php if (isset($id) && $a_csc[$id]): ?>
- <input name="id" type="hidden" value="<?=$id;?>"/>
+ <input name="id" type="hidden" value="<?=htmlspecialchars($id);?>"/>
<?php endif; ?>
</td>
</tr>
OpenPOWER on IntegriCloud