summaryrefslogtreecommitdiffstats
path: root/src/usr
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:20:10 -0500
commit45bcbee917920238248a2486a2742e3ff327b309 (patch)
treee459c2c3556207a2ffca7fa3b1acd47e4347673a /src/usr
parentc393f1d1c3c2981dcf41f002b6edcc08aa6d5a65 (diff)
downloadpfsense-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.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 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);
OpenPOWER on IntegriCloud