作者 邓超

bug

@@ -347,7 +347,7 @@ class Imap { @@ -347,7 +347,7 @@ class Imap {
347 } 347 }
348 348
349 // 获取搜索到的 uid 349 // 获取搜索到的 uid
350 - $result = $this->request($cmd); 350 + $result = $this->request(str_replace("\n","",$cmd));
351 351
352 if($result[0] != 'ok'){ 352 if($result[0] != 'ok'){
353 throw new \Exception('search error:'.end($result[1])); 353 throw new \Exception('search error:'.end($result[1]));
@@ -1057,7 +1057,7 @@ class Imap { @@ -1057,7 +1057,7 @@ class Imap {
1057 $tag = $this->getNextTag(); 1057 $tag = $this->getNextTag();
1058 1058
1059 // 命令行必须要结束换行 1059 // 命令行必须要结束换行
1060 - $cmd = trim($tag.' '.$cmd); 1060 + $cmd = str_replace("\n","",trim($tag.' '.$cmd));
1061 1061
1062 // 记录日志 1062 // 记录日志
1063 $this->log($cmd); 1063 $this->log($cmd);