2
0
فهرست منبع

[ZF-7547] Zend_Mail_Protocol_Imap::_decodeLine incorrectly parses some kind of strings

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18976 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 سال پیش
والد
کامیت
f99a30627b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      library/Zend/Mail/Protocol/Imap.php

+ 1 - 1
library/Zend/Mail/Protocol/Imap.php

@@ -209,7 +209,7 @@ class Zend_Mail_Protocol_Imap
                 $token = substr($token, 1);
                 $token = substr($token, 1);
             }
             }
             if ($token[0] == '"') {
             if ($token[0] == '"') {
-                if (preg_match('%^"((.|\\\\|\\")*?)" *%', $line, $matches)) {
+                if (preg_match('%^\(*"((.|\\\\|\\")*?)" *%', $line, $matches)) {
                     $tokens[] = $matches[1];
                     $tokens[] = $matches[1];
                     $line = substr($line, strlen($matches[0]));
                     $line = substr($line, strlen($matches[0]));
                     continue;
                     continue;