Преглед изворни кода

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