summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-12-01 10:21:30 -0500
committerjim-p <jimp@pfsense.org>2015-12-01 10:22:13 -0500
commitde90f855b61ee6c9b98e2060624b550a14bd6c57 (patch)
treeaf65e9b63d814dbb14699f752e0a7c4269fc64c9 /src/usr/local
parent1c337bc3513e322e8744f8ff19ec4d6895121962 (diff)
downloadpfsense-de90f855b61ee6c9b98e2060624b550a14bd6c57.zip
pfsense-de90f855b61ee6c9b98e2060624b550a14bd6c57.tar.gz
Fix some variable re-use and other issues to correct the OpenVPN wizard behavior when using pre-existing CAs and Certs
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/wizard.php16
-rw-r--r--src/usr/local/www/wizards/openvpn_wizard.inc2
2 files changed, 9 insertions, 9 deletions
diff --git a/src/usr/local/www/wizard.php b/src/usr/local/www/wizard.php
index b0beb35..c47db6c 100644
--- a/src/usr/local/www/wizard.php
+++ b/src/usr/local/www/wizard.php
@@ -665,21 +665,21 @@ if ($pkg['step'][$stepid]['fields']['field'] != "") {
}
foreach ($config['ca'] as $ca) {
- $name = htmlspecialchars($ca['descr']);
+ $caname = htmlspecialchars($ca['descr']);
- if ($value == $name)
+ if ($value == $caname)
$selected = $value;
$canecho = 0;
if ($field['certca_filter'] != "") {
- if (stristr($name, $field['certca_filter']) == true) {
+ if (stristr($caname, $field['certca_filter']) == true) {
$canecho = 1;
}
} else {
$canecho = 1;
}
if ($canecho == 1) {
- $options[$ca['refid']] = $name;
+ $options[$ca['refid']] = $caname;
}
}
@@ -713,16 +713,16 @@ if ($pkg['step'][$stepid]['fields']['field'] != "") {
continue;
}
- $name = htmlspecialchars($ca['descr']);
+ $caname = htmlspecialchars($ca['descr']);
- if ($value == $name) {
+ if ($value == $caname) {
array_push($selected, $value);
}
$canecho = 0;
if ($field['cert_filter'] != "") {
- if (stristr($name, $field['cert_filter']) == true) {
+ if (stristr($caname, $field['cert_filter']) == true) {
$canecho = 1;
}
} else {
@@ -730,7 +730,7 @@ if ($pkg['step'][$stepid]['fields']['field'] != "") {
}
if ($canecho == 1) {
- $options[$ca['refid']] = $name;
+ $options[$ca['refid']] = $caname;
}
}
diff --git a/src/usr/local/www/wizards/openvpn_wizard.inc b/src/usr/local/www/wizards/openvpn_wizard.inc
index 5450bc9..c0cdd58 100644
--- a/src/usr/local/www/wizards/openvpn_wizard.inc
+++ b/src/usr/local/www/wizards/openvpn_wizard.inc
@@ -243,7 +243,7 @@ function step8_submitphpaction() {
unset($config['ovpnserver']['step9']['uselist']);
$stepid++;
} else {
- $config['ovpnserver']['step6']['uselist'] = "on";
+ $config['ovpnserver']['step9']['uselist'] = "on";
$_POST['uselist'] = "on";
}
}
OpenPOWER on IntegriCloud