Просмотр исходного кода

[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 лет назад
Родитель
Сommit
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);
             }
             if ($token[0] == '"') {
-                if (preg_match('%^"((.|\\\\|\\")*?)" *%', $line, $matches)) {
+                if (preg_match('%^\(*"((.|\\\\|\\")*?)" *%', $line, $matches)) {
                     $tokens[] = $matches[1];
                     $line = substr($line, strlen($matches[0]));
                     continue;