[Tickets #4645] The addParameter() adds additional characters to the URL.

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Nov 10 03:27:44 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4645
-----------------------------------------------------------------------
 Ticket             | 4645
 Created By         | libregeek at gmail.com
 Summary            | The addParameter() adds additional characters to the URL.
 Queue              | Horde Framework Packages
 Version            | HEAD
 Type               | Bug
 State              | Unconfirmed
 Priority           | 3. High
 Owners             | 
-----------------------------------------------------------------------


libregeek at gmail.com (2006-11-10 03:27) wrote:

The  Horde_Form::addParameter add some extra characters to the URL 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






More information about the bugs mailing list