diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-02-04 18:14:41 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-02-04 18:38:50 -0200 |
commit | b3cbb077293ab439b63ef08103dfee4e066b56cd (patch) | |
tree | b06581ef32a612707fa4ecdd8576c82fded5e151 /etc/inc/openvpn.attributes.php | |
parent | af7a83737e694cff2a8fa41147f99a8a9812ff15 (diff) | |
download | pfsense-b3cbb077293ab439b63ef08103dfee4e066b56cd.zip pfsense-b3cbb077293ab439b63ef08103dfee4e066b56cd.tar.gz |
Fix some wrong escapeshellarg() calls
Conflicts:
etc/inc/filter_log.inc
etc/inc/pkg-utils.inc
Diffstat (limited to 'etc/inc/openvpn.attributes.php')
-rw-r--r-- | etc/inc/openvpn.attributes.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/openvpn.attributes.php b/etc/inc/openvpn.attributes.php index 31ec7f5..942a8d8 100644 --- a/etc/inc/openvpn.attributes.php +++ b/etc/inc/openvpn.attributes.php @@ -179,7 +179,7 @@ $rules = parse_cisco_acl($attributes); if (!empty($rules)) { $pid = posix_getpid(); @file_put_contents("/tmp/ovpn_{$pid}{$common_name}.rules", $rules); - mwexec("/sbin/pfctl -a \"openvpn/" . escapeshellarg($common_name) . "\" -f {$g['tmp_path']}/ovpn_{$pid}" . escapeshellarg($common_name) . ".rules"); + mwexec("/sbin/pfctl -a " . escapeshellarg("openvpn/{$common_name}") . " -f {$g['tmp_path']}/ovpn_{$pid}" . escapeshellarg($common_name) . ".rules"); @unlink("{$g['tmp_path']}/ovpn_{$pid}{$common_name}.rules"); } |