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:23:41 -0500 |
commit | d1aa3bba9b62a7f2de71e6d1ae2df439a3a7fd35 (patch) | |
tree | e86251e303a886f784677b71546cddbb33d0b402 | |
parent | 7f3974479a1a991fe93bcf317538a933394c8c93 (diff) | |
download | pfsense-d1aa3bba9b62a7f2de71e6d1ae2df439a3a7fd35.zip pfsense-d1aa3bba9b62a7f2de71e6d1ae2df439a3a7fd35.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
-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 a48a64d..e1b4b80 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); |