diff options
author | BBcan177 <bbcan177@gmail.com> | 2016-03-26 10:34:46 -0400 |
---|---|---|
committer | BBcan177 <bbcan177@gmail.com> | 2016-03-26 10:34:46 -0400 |
commit | 5481da2b7ac2f73870e04d6610eaa93d180c2a84 (patch) | |
tree | 149ae8ed2422afc781ea6fc9f492cf4aa31b1767 /config | |
parent | 2faa1392b45db8ad9f92cc58420d592a50134765 (diff) | |
download | pfsense-packages-5481da2b7ac2f73870e04d6610eaa93d180c2a84.tar.gz pfsense-packages-5481da2b7ac2f73870e04d6610eaa93d180c2a84.tar.bz2 pfsense-packages-5481da2b7ac2f73870e04d6610eaa93d180c2a84.zip |
Update pfblockerng.inc
* Remove leading/trailing whitespaces
Diffstat (limited to 'config')
-rw-r--r-- | config/pfblockerng/pfblockerng.inc | 6 |
1 files 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"; } } } |