From b300e590bbe916ce22cac51027458210319a6839 Mon Sep 17 00:00:00 2001 From: Thom Date: Thu, 24 Mar 2022 13:17:36 +0000 Subject: [PATCH 1/3] Fix line break issue (#6309) --- server/lib/app.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/app.inc.php b/server/lib/app.inc.php index f8f4a30811..e6b88ddc81 100644 --- a/server/lib/app.inc.php +++ b/server/lib/app.inc.php @@ -278,7 +278,7 @@ class app { die('Unable to open logfile.'); } - if(!fwrite($fp, $log_msg . '\r\n')) { + if(!fwrite($fp, $log_msg . "\r\n")) { die('Unable to write to logfile.'); } -- GitLab From 7302af358afae0b3f6bcaf88572fcdbdc06fddb3 Mon Sep 17 00:00:00 2001 From: Marius Burkard Date: Thu, 24 Mar 2022 13:23:25 +0000 Subject: [PATCH 2/3] Update app.inc.php --- server/lib/app.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/app.inc.php b/server/lib/app.inc.php index e6b88ddc81..04f2ec5cc4 100644 --- a/server/lib/app.inc.php +++ b/server/lib/app.inc.php @@ -266,7 +266,7 @@ class app { } /** @var string Formatted message to be sent to the logging subsystems. */ - $log_msg = @date('d.m.Y-H:i') . ' - ' . $priority_txt .' ' . $file_line_caller . '- '. $msg; + $log_msg = @date('d.m.Y-H:i') . ' - ' . $priority_txt . ' ' . $file_line_caller . ' - '. $msg; // Check if the user-set priority defines that this message should be output at all. if($priority >= $conf['log_priority']) { -- GitLab From 1e57465c166f703ba188db5d60d7816dc61790ac Mon Sep 17 00:00:00 2001 From: Marius Burkard Date: Thu, 24 Mar 2022 13:40:50 +0000 Subject: [PATCH 3/3] Apply 1 suggestion(s) to 1 file(s) --- server/lib/app.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/app.inc.php b/server/lib/app.inc.php index 04f2ec5cc4..ea6bf27977 100644 --- a/server/lib/app.inc.php +++ b/server/lib/app.inc.php @@ -266,7 +266,7 @@ class app { } /** @var string Formatted message to be sent to the logging subsystems. */ - $log_msg = @date('d.m.Y-H:i') . ' - ' . $priority_txt . ' ' . $file_line_caller . ' - '. $msg; + $log_msg = @date('d.m.Y-H:i') . ' - ' . $priority_txt . ' ' . $file_line_caller . '- '. $msg; // Check if the user-set priority defines that this message should be output at all. if($priority >= $conf['log_priority']) { -- GitLab