From b63f1ad681b587e51d39ab0b707279714419541e Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 15 Mar 2021 10:07:36 +0100 Subject: [PATCH 1/2] Removed extra verbosity --- pandora_console/operation/events/events_rss.php | 2 +- pandora_console/ws.php | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pandora_console/operation/events/events_rss.php b/pandora_console/operation/events/events_rss.php index f6a155e676..613b88b423 100644 --- a/pandora_console/operation/events/events_rss.php +++ b/pandora_console/operation/events/events_rss.php @@ -30,7 +30,7 @@ global $config; // Don't display other errors, messes up XML. -ini_set('display_errors', E_ALL); +ini_set('display_errors', 0); require_once '../../include/config.php'; require_once '../../include/functions.php'; diff --git a/pandora_console/ws.php b/pandora_console/ws.php index 0c9509720c..e873cdf7f2 100644 --- a/pandora_console/ws.php +++ b/pandora_console/ws.php @@ -91,10 +91,6 @@ if (isset($config['gotty']) === false) { config_update_value('gotty', '/usr/bin/gotty'); } - -ini_set('display_errors', 1); -error_reporting(E_ALL); - $os = strtolower(PHP_OS); if (substr($os, 0, 3) !== 'win') { if (empty($config['gotty']) === false) { From 1762e758fa6ee8eebcd8c2f5dd65b3d659da482f Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Mon, 15 Mar 2021 10:09:02 +0100 Subject: [PATCH 2/2] forced no display_errors --- pandora_console/include/config_process.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php index 1f0f644a72..83ddd741aa 100644 --- a/pandora_console/include/config_process.php +++ b/pandora_console/include/config_process.php @@ -52,6 +52,10 @@ if ((int) $develop_bypass === 1) { } ini_set('display_errors', 1); +} else { + // Leave user decide error_level, but limit errors to be displayed only in + // logs. + ini_set('display_errors', 0); } // Check if mysqli is available