[imp] Emptying trash logs you out ... URL problem

Jan Schneider jan at horde.org
Thu Aug 7 02:31:57 PDT 2003


Zitat von Barry Pederson <barryp at medicine.nodak.edu>:

> What I've been able to track down is: the URL for the "Empty trash" icon
> is
> generated in imp/templates/menu/menu.inc - one small fragment of code
> you'll
> find there is:
>
>       '&return_url=' . urlencode(Horde::selfURL(true))
>
> The return_url seems to be HTML-Escaped (by Horde::selfURL()?), so part
> of
> the URL for the empty trash icon ends up looking something like:

Nice catch!

> My temporary fix was to insert a:
>
>           $url = ereg_replace('&amp;', '&', $url);
>
> before the 'Location:' header is set to partially un-HTML-Escape that URL

Fixed in CVS. str_replace() is sufficient btw.

> but that doesn't do anything for other bits of code that also use
> Horde::selfURL().

This problem only affects redirecting by headers anyway.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the imp mailing list