summaryrefslogtreecommitdiffstats
path: root/etc/inc/openvpn.attributes.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-04 18:14:41 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-02-04 18:14:41 -0200
commit7b27b18bef4b529fc4aad42d47c861d1cc26b655 (patch)
tree2831974f9216122823202f754afcac21e8845d17 /etc/inc/openvpn.attributes.php
parent7b7ad7f62fe2946ce7521581aac2b2d8387254ad (diff)
downloadpfsense-7b27b18bef4b529fc4aad42d47c861d1cc26b655.zip
pfsense-7b27b18bef4b529fc4aad42d47c861d1cc26b655.tar.gz
Fix some wrong escapeshellarg() calls
Diffstat (limited to 'etc/inc/openvpn.attributes.php')
-rw-r--r--etc/inc/openvpn.attributes.php2
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");
}
OpenPOWER on IntegriCloud