Explorar o código

[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 %!s(int64=16) %!d(string=hai) anos
pai
achega
f99a30627b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
             }
             if ($token[0] == '"') {
-                if (preg_match('%^"((.|\\\\|\\")*?)" *%', $line, $matches)) {
+                if (preg_match('%^\(*"((.|\\\\|\\")*?)" *%', $line, $matches)) {
                     $tokens[] = $matches[1];
                     $line = substr($line, strlen($matches[0]));
                     continue;