diff options
author | Ermal <eri@pfsense.org> | 2011-11-11 13:42:40 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-11-11 13:42:40 +0000 |
commit | 2e9362c5ab08a858759cd65f01409248ea602639 (patch) | |
tree | 2ea35b819746916be24c456744c3c75ab9b9367e /config/snort/snort_rules.php | |
parent | 5becc5aa5efda18cc0a69e3664738fe3d3d23149 (diff) | |
download | pfsense-packages-2e9362c5ab08a858759cd65f01409248ea602639.tar.gz pfsense-packages-2e9362c5ab08a858759cd65f01409248ea602639.tar.bz2 pfsense-packages-2e9362c5ab08a858759cd65f01409248ea602639.zip |
Use basename to be sure that no full path is used on the files themselves
Diffstat (limited to 'config/snort/snort_rules.php')
-rw-r--r-- | config/snort/snort_rules.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/snort/snort_rules.php b/config/snort/snort_rules.php index 2aa49865..871eb39e 100644 --- a/config/snort/snort_rules.php +++ b/config/snort/snort_rules.php @@ -157,7 +157,7 @@ while (false !== ($filename = readdir($dh))) //only populate this array if its a rule file $isrulefile = strstr($filename, ".rules"); if ($isrulefile !== false) - $files[] = $filename; + $files[] = basename($filename); } sort($files); |