aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-06-24 17:07:57 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-06-24 17:07:57 -0400
commit8096a45a34680719162fb6c42655f62815ba926d (patch)
tree7e3fb16ac6f5c538ef86560610f96d8ea166e18c /config
parent48d2c2c00339c1f60004b6760bf69ff015a66b75 (diff)
downloadpfsense-packages-8096a45a34680719162fb6c42655f62815ba926d.tar.gz
pfsense-packages-8096a45a34680719162fb6c42655f62815ba926d.tar.bz2
pfsense-packages-8096a45a34680719162fb6c42655f62815ba926d.zip
Check for syntax error using shell return code
Diffstat (limited to 'config')
-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 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}");
}