diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-11-17 10:34:46 -0700 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-11-17 10:34:46 -0700 |
commit | 53d41b688552cddc4941031635e31f528468f4c1 (patch) | |
tree | 0e7eaef29d0c7c3183508252023d4d18a3006b7c /etc/inc/openvpn.inc | |
parent | a219c6432582650f4942cfb3b5c9c94e14551af5 (diff) | |
download | pfsense-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.inc | 2 |
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"); |