aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/pfblockerng/pfblockerng.inc6
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";
}
}
}