[#13894] HORDE: PHP ERROR: Header may not contain more than a single header, new line detected
Summary HORDE: PHP ERROR: Header may not contain more than a single header, new line detected
Queue Horde Framework Packages
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk@horde.org
Requester tuxillo@quantumachine.net
Created 2015-03-03 (1950 days ago)
Due
Updated 2015-03-03 (1950 days ago)
Assigned
Resolved 2015-03-03 (1950 days ago)
Milestone
Patch No

Comments
tuxillo@quantumachine.net 2015-03-03 13:15:16
Hi,

When trying to connect an Android device (4.4.4) to my Horde 
installation using Mail app through ActiveSync, connection fails and I 
get the following error in /var/log/messages:

HORDE: PHP ERROR: Header may not contain more than a single header, 
new line detected [pid 1007 on line 163 of 
"/usr/share/php/Horde/Rpc/ActiveSync.php"]

Details from the server are:

- Debian 7
- PHP 5.4.36
- Apache 2.2.22 with mod_php
- Horde Groupware 5.2.5 (I believe the horde_rpc is 2.26 since I've 
just upgraded).

Offending line would be:

https://github.com/horde/horde/blob/master/framework/Rpc/lib/Horde/Rpc/ActiveSync.php#L163

Cheers,
Antonio Huete

Git Commit <commits@lists.horde.org> 2015-03-03 23:49:24
Changes have been made in Git (master):

commit bb52fdb413cc9abba46cf85789779a9fbd165817
Author: Michael J Rubinsky <mrubinsk@horde.org>
Date:   Tue Mar 3 18:48:07 2015 -0500

     Bug: 13894 Avoid returning invalid strings in HTTP response.

     Really no need to return the error message here anyway, just log it.

  framework/Rpc/lib/Horde/Rpc/ActiveSync.php |   11 +++++++----
  1 files changed, 7 insertions(+), 4 deletions(-)

http://github.com/horde/horde/commit/bb52fdb413cc9abba46cf85789779a9fbd165817

Michael Rubinsky <mrubinsk@horde.org> 2015-03-03 23:51:38
This fixes the error described in this ticket. However, this doesn't 
fix whatever underlying issues are causing the HTTP 500 to begin with. 
I.e., this only affected the error text being sent back to the client.