summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/wizard.php
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/www/wizard.php
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/www/wizard.php')
-rw-r--r--src/usr/local/www/wizard.php16
1 files changed, 8 insertions, 8 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;
}
}
OpenPOWER on IntegriCloud