summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-09-25 11:46:58 -0400
committerjim-p <jimp@pfsense.org>2013-09-25 11:49:37 -0400
commit5205b0eb7bb35c3a85da5f78a854010e7ee1397d (patch)
tree8a101d33aac6082857fd114941dafbc757ca8f8c /etc
parent197099cffd8cef6667ffd7fecee94c7e0a5e3955 (diff)
downloadpfsense-5205b0eb7bb35c3a85da5f78a854010e7ee1397d.zip
pfsense-5205b0eb7bb35c3a85da5f78a854010e7ee1397d.tar.gz
Make sure no extra spaces end up in the parsed IP, it can lead to issues in other places (Easy Rule, etc)
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter_log.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc
index 09434d8..31d3f60 100644
--- a/etc/inc/filter_log.inc
+++ b/etc/inc/filter_log.inc
@@ -207,7 +207,7 @@ function parse_filter_line($line) {
}
function parse_ipport($addr) {
- $addr = rtrim($addr, ":");
+ $addr = trim(rtrim($addr, ":"));
if (substr($addr, 0, 4) == "kip ")
$addr = substr($addr, 4);
$port = '';
OpenPOWER on IntegriCloud