summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-11-15 17:00:50 +0545
committerPhil Davis <phil.davis@inf.org>2015-11-15 17:00:50 +0545
commitf2220c684850623dfc33caa3488b30129d17012e (patch)
tree1799d1d8a388adaa24f0fc30b1c4408c2387cf77
parentc670525f0455c4cd7bf7486a12688441339cb6d3 (diff)
downloadpfsense-f2220c684850623dfc33caa3488b30129d17012e.zip
pfsense-f2220c684850623dfc33caa3488b30129d17012e.tar.gz
Ticket #5451 for RELENG_2_2
Actually this can be fixed by adding just a space after "from any". The code here builds up $tmprule and each time it adds a new clause it puts a space at the end, ready for if there is another clause to come. The "from any" here was the only offender in this scheme. It seems good to me to still backport little easy fixes to RELENG_2_2. That way production users can get them easily if they like (with system patches or...).
-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 8a04ca4..b03579a 100644
--- a/etc/inc/openvpn.attributes.php
+++ b/etc/inc/openvpn.attributes.php
@@ -121,7 +121,7 @@ function parse_cisco_acl($attribs) {
if ($isblock == true)
$isblock = false;
} else if (trim($rule[$index]) == "any") {
- $tmprule .= "from any";
+ $tmprule .= "from any ";
$index++;
} else {
$tmprule .= "from {$rule[$index]}";
OpenPOWER on IntegriCloud