6.0.0-beta1
9/2/25

[#2227] Malformed header
Summary Malformed header
Queue Horde Base
Queue Version 3.0.4
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester johnp (at) ktro (dot) com
Created 07/05/2005 (7364 days ago)
Due
Updated 07/05/2005 (7364 days ago)
Assigned
Resolved 07/05/2005 (7364 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
07/05/2005 10:10:38 PM johnp (at) ktro (dot) com Comment #3 Reply to this comment
There in fact is a difference.



void header ( string string [, bool replace [, int http_response_code]] )

The string argument is getting truncated with certain URL's

It should be quoted in some way.






07/05/2005 09:54:57 PM Chuck Hagenbuch Comment #2
State ⇒ Not A Bug
Reply to this comment
There is no difference between these two:
header('Refresh: 0; URL=' . $_GET['url']);
header("Refresh: 0; URL={$_GET['url']}");
07/05/2005 09:49:23 PM johnp (at) ktro (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Malformed header
Queue ⇒ Horde Base
Reply to this comment
Certain URL's in Emails do not process correctly.

The header is not created correctly.

Note the tick after the URL=

Possible to use double quotes, or completely

encompass the URL and args in quites.

   at or around line 77 of horde/services/go.php



// Otherwise we're issuing a refresh.

header('Refresh: 0; URL=' . $_GET['url']);



Either of the following work.

header("Refresh: 0; URL={$_GET['url']}");

header("location: $_GET[url]");








Saved Queries