| 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 (7430 days ago) |
| Due | |
| Updated | 07/05/2005 (7430 days ago) |
| Assigned | |
| Resolved | 07/05/2005 (7430 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
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.
State ⇒ Not A Bug
header("Refresh: 0; URL={$_GET['url']}");
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Malformed header
Queue ⇒ Horde Base
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]");