From 8e81f6a88180c5c9a280d78fd77788f7160b0d1a Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sun, 15 Nov 2015 00:14:56 -0600 Subject: Correct AVPair rules. Ticket #5451 --- src/etc/inc/openvpn.attributes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/etc/inc/openvpn.attributes.php b/src/etc/inc/openvpn.attributes.php index 467d691..b966448 100644 --- a/src/etc/inc/openvpn.attributes.php +++ b/src/etc/inc/openvpn.attributes.php @@ -143,16 +143,16 @@ function parse_cisco_acl($attribs) { /* Destination */ if (trim($rule[$index]) == "host") { $index++; - $tmprule .= "to {$rule[$index]} "; + $tmprule .= " to {$rule[$index]} "; $index++; if ($isblock == true) { $isblock = false; } } else if (trim($rule[$index]) == "any") { $index++; - $tmprule .= "to any"; + $tmprule .= " to any"; } else { - $tmprule .= "to {$rule[$index]}"; + $tmprule .= " to {$rule[$index]}"; $index++; $netmask = cisco_to_cidr($rule[$index]); $tmprule .= "/{$netmask} "; -- cgit v1.1