浏览代码

Default decodeBody() force_crlf Value

Prevent any PHP 8.1 errors about sending empty variables to functions that want contentful strings.
Andy 3 年之前
父节点
当前提交
534050ecd4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      functions/mime.php

+ 1 - 0
functions/mime.php

@@ -769,6 +769,7 @@ function decodeBody($string, $encoding, $force_crlf='') {
 
     global $force_crlf_default;
     if (empty($force_crlf)) $force_crlf = $force_crlf_default;
+    if (empty($force_crlf)) $force_crlf = 'NOCHANGE';
     $force_crlf = strtoupper($force_crlf);
 
     // must force line endings to LF due to broken