Mail/mimePart.php
authorjohn <john@roojs.com>
Thu, 12 Jul 2018 12:41:54 +0000 (20:41 +0800)
committerjohn <john@roojs.com>
Thu, 12 Jul 2018 12:41:54 +0000 (20:41 +0800)
Mail/mimePart.php

index 1f6c9a8..f61203b 100644 (file)
@@ -953,7 +953,7 @@ class Mail_mimePart
      * @access public
      * @since 1.6.1
      */
-    function encodeHeaderValue($value, $charset, $encoding, $prefix_len=0, $eol="\r\n")
+    static function encodeHeaderValue($value, $charset, $encoding, $prefix_len=0, $eol="\r\n")
     {
         // #17311: Use multibyte aware method (requires mbstring extension)
         if ($result = Mail_mimePart::encodeMB($value, $charset, $encoding, $prefix_len, $eol)) {