From d1aa3bba9b62a7f2de71e6d1ae2df439a3a7fd35 Mon Sep 17 00:00:00 2001 From: jim-p Date: Fri, 16 Dec 2016 09:20:10 -0500 Subject: 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 --- src/usr/local/www/diag_command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 src/usr/local/www/diag_command.php diff --git a/src/usr/local/www/diag_command.php b/src/usr/local/www/diag_command.php old mode 100644 new mode 100755 index a48a64d..e1b4b80 --- 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); -- cgit v1.1