| 
...
 | 
...
 | 
@@ -290,9 +290,13 @@ class Header{ | 
| 
 | 
 | 
      * @time 2024/9/29 14:21
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     public static function mime_decode(string $str):string {
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         $str = trim($str);
 | 
| 
 | 
 | 
         if(preg_match("/^=\?([a-z0-9-]{3,})\?[bq]\?/i",$str,$code)){
 | 
| 
 | 
 | 
         if(preg_match("/^=\?([a-z0-9-.]{3,})\?[bq]\?/i",$str,$code)){
 | 
| 
 | 
 | 
             // 解码 这个函数好像已经转码了,
 | 
| 
 | 
 | 
 //            =?iso-8859-8-i?B?4eTu+eog7PTw6en66iDg7CDn4fj6IERjb20gLSD08OnkIO7xIDgyNzUz?=
 | 
| 
 | 
 | 
             $str = str_replace("=?{$code[1]}?",'=?'.rtrim($code[1],'-i').'?',$str);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
             $str = mb_decode_mimeheader($str);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
             return $str;
 | 
...
 | 
...
 | 
 |