From 1059fe57655894a6a4ee9ff3a54b2a5eaf0bf937 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 12 Jul 2012 18:51:31 +0000 Subject: Remove duplicate results --- config/snort/snort.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/snort') 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; -- cgit v1.2.3