diff options
author | jim-p <jimp@pfsense.org> | 2016-12-16 09:20:10 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-12-16 09:20:10 -0500 |
commit | 45bcbee917920238248a2486a2742e3ff327b309 (patch) | |
tree | e459c2c3556207a2ffca7fa3b1acd47e4347673a /src/usr | |
parent | c393f1d1c3c2981dcf41f002b6edcc08aa6d5a65 (diff) | |
download | pfsense-45bcbee917920238248a2486a2742e3ff327b309.zip pfsense-45bcbee917920238248a2486a2742e3ff327b309.tar.gz |
Suppress error logging for Diag > Command Prompt so an error in user-entered code doesn't offer to submit a crash report. A notice is still generated since PHP <7 doesn't yet have error_clear_last(). Fixes #6702
Diffstat (limited to 'src/usr')
-rwxr-xr-x[-rw-r--r--] | src/usr/local/www/diag_command.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/diag_command.php b/src/usr/local/www/diag_command.php index a2de181..30f069c 100644..100755 --- a/src/usr/local/www/diag_command.php +++ b/src/usr/local/www/diag_command.php @@ -282,7 +282,7 @@ if ($_POST['submit'] == "EXEC" && !isBlank($_POST['txtCommand'])):?> fclose($phpfile); $output = array(); - exec("/usr/local/bin/php " . $tmpname, $output); + exec("/usr/local/bin/php -d log_errors=off " . $tmpname, $output); unlink($tmpname); |