X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=inc%2Ffunctions.php;h=43ad387361cafb1fa64521373157be6d0eca9006;hb=218aaa7c38e0c92a511cfd837a4554acd1f40ca3;hp=dceab6c671772b094d7ea252157846a148408529;hpb=fb7120ffa230b62b54895bcf95952e1cf30f8594;p=mailer.git 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");