aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-12 18:51:31 +0000
committerErmal <eri@pfsense.org>2012-07-12 18:51:31 +0000
commit1059fe57655894a6a4ee9ff3a54b2a5eaf0bf937 (patch)
tree1f6d6f7e0b8305f80bdc25e52483f012e685746a
parent9afa1a002f818b7dae2f34807cde2ad2610e8747 (diff)
downloadpfsense-packages-1059fe57655894a6a4ee9ff3a54b2a5eaf0bf937.tar.gz
pfsense-packages-1059fe57655894a6a4ee9ff3a54b2a5eaf0bf937.tar.bz2
pfsense-packages-1059fe57655894a6a4ee9ff3a54b2a5eaf0bf937.zip
Remove duplicate results
-rw-r--r--config/snort/snort.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 76520372..037cc372 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -198,7 +198,9 @@ function snort_build_list($listname = "") {
foreach ($validator as $vald) {
if (empty($vald))
continue;
- $valresult[] = trim($vald);
+ $vald = trim($vald);
+ if (empty($valresult[$vald]))
+ $valresult[$vald] = $vald;
}
return $valresult;