6.0.0-beta1
7/27/25

[#1899] Reply to message generates array to string error
Summary Reply to message generates array to string error
Queue IMP
Queue Version 4.0.3
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester ben (at) cpanel (dot) net
Created 05/02/2005 (7391 days ago)
Due
Updated 05/02/2005 (7391 days ago)
Assigned
Resolved 05/02/2005 (7391 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
05/02/2005 08:25:31 PM Jan Schneider Comment #2
State ⇒ Not A Bug
Reply to this comment
Duplicate of bug 1835.
05/02/2005 07:15:29 PM ben (at) cpanel (dot) net Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Reply to message generates array to string error
Queue ⇒ IMP
New Attachment: Horde_array_to_string_in_reply.patch Download
Reply to this comment
Notice: Array to string conversion in 
/usr/local/cpanel/base/horde/imp/lib/Compose.php on line 769



Apparently the '/%m/' array element in $match is a blank array. Seems 
to only occur on one of the messages in the inbox. Here's the array 
element:



/* Message-ID. */

'/%m/' => $h->getOb('message_id'),



I patched our Compose.php with this line before the preg_replace:



if (!$match['/%m/']) { $match['/%m/'] = ''; }



It's a silly hack, but prevents the issue from manifesting in the 
user's browser. I suspect that it's really an issue with PHP's 
imap_headerinfo.



Using PHP 4.3.10



Patch is attached.

Saved Queries