summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.inc
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-11-17 10:34:46 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-11-17 10:34:46 -0700
commit53d41b688552cddc4941031635e31f528468f4c1 (patch)
tree0e7eaef29d0c7c3183508252023d4d18a3006b7c /etc/inc/openvpn.inc
parenta219c6432582650f4942cfb3b5c9c94e14551af5 (diff)
downloadpfsense-53d41b688552cddc4941031635e31f528468f4c1.zip
pfsense-53d41b688552cddc4941031635e31f528468f4c1.tar.gz
The way this option is currently defined, the configuration variable is always set; for this case, isset is not the correct condition. Reported at http://forum.pfsense.org/index.php/topic,30153.0.html
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r--etc/inc/openvpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 2750d01..cab5467 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -393,7 +393,7 @@ function openvpn_reconfigure($mode,& $settings) {
$sed .= "\"{$authcfg}\"";
}
$sed .= ");\\\n";
- if (isset($settings['strictusercn']))
+ if ($settings['strictusercn'])
$sed .= "\$strictusercn = true;";
mwexec("/bin/cat /etc/inc/openvpn.auth-user.php | /usr/bin/sed 's/\/\/<template>/{$sed}/g' > {$g['varetc_path']}/openvpn/{$mode_id}.php");
mwexec("/bin/chmod a+x {$g['varetc_path']}/openvpn/{$mode_id}.php");
OpenPOWER on IntegriCloud