aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-03-06 19:31:20 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-03-06 19:31:20 -0500
commitcb6bc4a355ab73aff819e726f5d702d940de460e (patch)
treefc6e80be1949d693a96852ce75de74e208b60af0
parent070951ebb3cd401df9e6ed52c827f93b3fb08b7a (diff)
downloadpfsense-packages-cb6bc4a355ab73aff819e726f5d702d940de460e.tar.gz
pfsense-packages-cb6bc4a355ab73aff819e726f5d702d940de460e.tar.bz2
pfsense-packages-cb6bc4a355ab73aff819e726f5d702d940de460e.zip
Actually load rules
-rw-r--r--config/apache_mod_security/apache_mod_security.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/apache_mod_security/apache_mod_security.inc b/config/apache_mod_security/apache_mod_security.inc
index 58139cc2..5f895e3d 100644
--- a/config/apache_mod_security/apache_mod_security.inc
+++ b/config/apache_mod_security/apache_mod_security.inc
@@ -345,9 +345,9 @@ EOF;
$mod_security_rules = "";
$files = return_dir_as_array(rules_directory);
foreach($files as $file) {
- if(file_exists($file)) {
+ if(file_exists(rules_directory . "/" . $file)) {
// XXX: TODO integrate snorts rule on / off thingie
- $file_txt = get_file_contents($file);
+ $file_txt = file_get_contents(rules_directory . "/" . $file);
$mod_security_rules .= $file_txt . "\n";
}
}