2
0
Переглянути джерело

ZF-6263 - Restricted Zend_Mime Header Encoding to only break after spaces since no other character can be objectively specified as "breakable" character. All unittests in regard to Zend_Mime and Zend_Mail header encoding still pass.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@16032 44c647ce-9c0f-0410-b52a-842ac1e357ba
beberlei 16 роки тому
батько
коміт
fc76bceb48
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      library/Zend/Mime.php

+ 1 - 2
library/Zend/Mime.php

@@ -206,8 +206,7 @@ class Zend_Mime
             $str         = substr($str, strlen($token));
 
             $tmp .= $token;
-            if( (strlen($token) == 1 && strpbrk($token, '!%,.:;<>'))
-                || in_array($token, array("=3F", "=20", "=5F")) ) {
+            if($token == '=20') {
                 // only if we have a single char token or space, we can append the
                 // tempstring it to the current line or start a new line if necessary.
                 if(strlen($lines[$currentLine].$tmp) > $lineLength) {