Quellcode durchsuchen

[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 vor 16 Jahren
Ursprung
Commit
f99a30627b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;