[dev] more util::addparameter

Jan Schneider jan at horde.org
Tue Aug 31 15:35:14 PDT 2004


Zitat von Andrew Coleman <mercury at appisolutions.net>:

> Okay, what am i doing wrong?
>
> Util::addParameter is blatantly ignoring whatever parameter i pass to $encode
> and *always* encodes '&' as '&amp;'. I have set args.separator_output to '&'
> manually, and still no go... I even went so far as to completely remove the
> chunk of Util code that checks to see if the url has already been 
> html-ified...

It's pretty easy: If there already is a separator, this one is used, if
there is none yet, the $encode parameter defines which one to use.

Horde::[application]Url() makes all separator encoded or not depending on
the $full parameter.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the dev mailing list