X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Ffunctions.php;h=43ad387361cafb1fa64521373157be6d0eca9006;hp=dceab6c671772b094d7ea252157846a148408529;hb=8a73ce89f88fb09523fce05eb2aff80665e65827;hpb=8b1b9246ccc58685d2ce49b84b8313c94a22aa16 diff --git a/inc/functions.php b/inc/functions.php index dceab6c671..43ad387361 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -3079,6 +3079,9 @@ function merge_array ($array1, $array2) { function DEBUG_LOG ($funcFile, $line, $message, $force=true) { // Is debug mode enabled? if ((isDebugModeEnabled()) || ($force === true)) { + // Remove CRLF + $message = str_replace("\r", "", str_replace("\n", "", $message)); + // Log this message away $fp = fopen(constant('PATH')."inc/cache/debug.log", 'a') or mxchange_die("Cannot write logfile debug.log!"); fwrite($fp, date("d.m.Y|H:i:s", time())."|".basename($funcFile)."|".$line."|".strip_tags($message)."\n");