Summary | addParameter() adds additional characters to the URL |
Queue | Horde Framework Packages |
Queue Version | HEAD |
Type | Bug |
State | Resolved |
Priority | 3. High |
Owners | slusarz (at) horde (dot) org |
Requester | libregeek (at) gmail (dot) com |
Created | 11/10/2006 (6817 days ago) |
Due | |
Updated | 01/09/2007 (6757 days ago) |
Assigned | 12/08/2006 (6789 days ago) |
Resolved | 01/09/2007 (6757 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Priority ⇒ 3. High
when not using cookies. It's double encoding ampersands even though it
is told not to, logging the user immediately out.
This might not have been working reliably in the past, but we are now
getting more complaints then before. And we can probably work around
the old behaviour which is better than fixing all those places where
it's broken now.
State ⇒ Feedback
already encoded in the URL or not. This is a BC break.
did not (and could not) reliably detect these ampersands -
particularly with URLs that get passed between pages via forms (this
was the reason for the fix in the first place). This is an example
(IMHO) of a necessary BC break to fix a larger problem elsewhere.
State ⇒ Assigned
already encoded in the URL or not. This is a BC break.
State ⇒ Not A Bug
ampersands in your URL, and that is what it is doing.
Summary ⇒ addParameter() adds additional characters to the URL
State ⇒ Assigned
Priority ⇒ 2. Medium
Priority ⇒ 3. High
State ⇒ Unconfirmed
Queue ⇒ Horde Framework Packages
Summary ⇒ The addParameter() adds additional characters to the URL.
Type ⇒ Bug
when it is generated.
Steps to reproduce:
Define a class inherited from Horde_Form and instantiate the class.
Add the parameters like this:
$form = &new EmpDocument_Form($variables, "Add Documents")
$renderer = &$form->getRenderer();
$main_url = Horde::applicationUrl('editemployee.php');
$edit_url = Util::addParameter($main_url, array('action' => 'add_doc',
'emp_id'=> $emp_id));
$form->renderActive($renderer, $variables, $edit_url, 'post');
But when the HTML form is generated it adds some extra characters
like "amp;" to the URL. Here is the complete URL copied from the "View
Source" of the browser.
Browser: Firefox-2.0
PHP-5.1.4
Horde-3.2CVS