From 599d564ea40bd65a5c91f4f1f0a598ac6d44ef5c Mon Sep 17 00:00:00 2001 From: Ermal Date: Tue, 22 Oct 2013 18:49:34 +0000 Subject: Prepend ipsec_ here as well for better protection --- etc/inc/ipsec.attributes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/inc/ipsec.attributes.php b/etc/inc/ipsec.attributes.php index e8507d7..2fee525 100644 --- a/etc/inc/ipsec.attributes.php +++ b/etc/inc/ipsec.attributes.php @@ -176,9 +176,9 @@ function parse_cisco_acl($attribs) { $rules = parse_cisco_acl($attributes); if (!empty($rules)) { $pid = posix_getpid(); - @file_put_contents("/tmp/{$pid}{$common_name}.rules", $rules); - mwexec("/sbin/pfctl -a \"ipsec/{$common_name}\" -f {$g['tmp_path']}/{$pid}{$common_name}.rules"); - @unlink("{$g['tmp_path']}/{$pid}{$common_name}.rules"); + @file_put_contents("/tmp/ipsec_{$pid}{$common_name}.rules", $rules); + mwexec("/sbin/pfctl -a \"ipsec/{$common_name}\" -f {$g['tmp_path']}/ipsec_{$pid}{$common_name}.rules"); + @unlink("{$g['tmp_path']}/ipsec_{$pid}{$common_name}.rules"); } ?> -- cgit v1.1