From 5481da2b7ac2f73870e04d6610eaa93d180c2a84 Mon Sep 17 00:00:00 2001 From: BBcan177 Date: Sat, 26 Mar 2016 10:34:46 -0400 Subject: Update pfblockerng.inc * Remove leading/trailing whitespaces --- config/pfblockerng/pfblockerng.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/pfblockerng/pfblockerng.inc b/config/pfblockerng/pfblockerng.inc index e5d3c867..437d912d 100644 --- a/config/pfblockerng/pfblockerng.inc +++ b/config/pfblockerng/pfblockerng.inc @@ -260,15 +260,15 @@ function pfbng_text_area_decode($text, $mode=FALSE) { if (substr(trim($line), 0, 1) != '#' && !empty($line)) { if (strpos($line, '#') !== FALSE) { if ($mode) { - $custom[] = preg_split('/(?=#)/', $line); + $custom[] = preg_split('/\s+(?=#)/', trim($line)); } else { $custom .= trim(strstr($line, '#', TRUE)) . "\n"; } } else { if ($mode) { - $custom[][0] = $line; + $custom[][0] = trim($line); } else { - $custom .= $line . "\n"; + $custom .= trim($line) . "\n"; } } } -- cgit v1.2.3