Browse Source

Default decodeBody() force_crlf Value

Prevent any PHP 8.1 errors about sending empty variables to functions that want contentful strings.
Andy 3 years ago
parent
commit
534050ecd4
1 changed files with 1 additions and 0 deletions
  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;
     global $force_crlf_default;
     if (empty($force_crlf)) $force_crlf = $force_crlf_default;
     if (empty($force_crlf)) $force_crlf = $force_crlf_default;
+    if (empty($force_crlf)) $force_crlf = 'NOCHANGE';
     $force_crlf = strtoupper($force_crlf);
     $force_crlf = strtoupper($force_crlf);
 
 
     // must force line endings to LF due to broken
     // must force line endings to LF due to broken