Browse Source

[ZF-7978]method Zend_Mail_Protocol_Imap::_decodeLine() incorrectly parse some tokens

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18498 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 năm trước cách đây
mục cha
commit
0cc66e3169
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      library/Zend/Mail/Protocol/Imap.php

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

@@ -241,8 +241,8 @@ class Zend_Mail_Protocol_Imap
                 // only count braces if more than one
                 $braces -= strlen($token) + 1;
                 // only add if token had more than just closing braces
-                if ($token) {
-                    $tokens[] = $token;
+                if (rtrim($token) != '') {
+                    $tokens[] = rtrim($token);
                 }
                 $token = $tokens;
                 $tokens = array_pop($stack);