[Tickets #7657] getTransferEncoding() in lib/Horde/MIME is incorrect

bugs at horde.org bugs at horde.org
Sat Nov 8 09:11:02 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7657
------------------------------------------------------------------------------
  Ticket             | 7657
  Created By         | taguchi at tcltk.jp
  Summary            | getTransferEncoding() in lib/Horde/MIME is incorrect
  Queue              | Horde Framework Packages
  Version            | FRAMEWORK_3
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | patch-Part.php
------------------------------------------------------------------------------


taguchi at tcltk.jp (2008-11-08 04:11) wrote:

getTransferEncoding() is incorrect.

This function checks long line (>999) using regex pattern.
This pattern is "/(?:\n|^)[^\n]{999,}(?:\n|$)/".
But it is incorrect. because EOL(='\n') has already removed
using str_replace().

attached patch is a fix this probrem(I hope so).

Thanks.





More information about the bugs mailing list