diff options
Diffstat (limited to 'config/apache_mod_security')
-rw-r--r-- | config/apache_mod_security/apache_mod_security.inc | 4 |
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 c571e435..7a2193c0 100644 --- a/config/apache_mod_security/apache_mod_security.inc +++ b/config/apache_mod_security/apache_mod_security.inc @@ -99,8 +99,8 @@ function apache_mod_security_resync() { function apache_mod_security_checkconfig() { global $config, $g; - $status = `/usr/local/sbin/httpd -t`; - if(!strstr($status, "OK")) { + $status = mwexec("/usr/local/sbin/httpd -t"); + if($status) { $input_error = "apache_mod_security_package: There was an error parsing the Apache configuration: {$status}"; log_error("apache_mod_security_package: There was an error parsing the Apache configuration: {$status}"); } |