summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_command.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-12-16 09:20:10 -0500
committerjim-p <jimp@pfsense.org>2016-12-16 09:23:33 -0500
commitfb2f904c6955c96e5e3bb9d9354f8694df7518b7 (patch)
treebf3a0498e89f78a00afc0698d9598a9da243d335 /src/usr/local/www/diag_command.php
parent4c7af1eed07f71357df8ee0f6d54589e0b643e8c (diff)
downloadpfsense-fb2f904c6955c96e5e3bb9d9354f8694df7518b7.zip
pfsense-fb2f904c6955c96e5e3bb9d9354f8694df7518b7.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/local/www/diag_command.php')
-rwxr-xr-x[-rw-r--r--]src/usr/local/www/diag_command.php2
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 d18c195..fcc9af0 100644..100755
--- a/src/usr/local/www/diag_command.php
+++ b/src/usr/local/www/diag_command.php
@@ -315,7 +315,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);
OpenPOWER on IntegriCloud