[TYPO3-core] RFC: #8205: Shortcut ends in parse_url-error

Helmut Hummel typo3 at jhpc.de
Sun Jun 15 22:15:36 CEST 2008


Hi Steffen,

Steffen Kamper wrote:
>
> Problem:
> there are 4 problems that are all fixed by this patch
>
> 1) when creating shortcut from file_list it ends up in parse_url error
> 2) when creating shortcut after Clickmenu it ends up in parse_url error
> 3) If you create shortcut from "edit page properties" label of shortcut
> can't get page name
> 4) If you access items in Clickmenu returnUrl contains complete url with
> host

Great! I just tested your patch and it works perfect. +1 by testing

> Solution:
> 1&  2) parameter $_GET['url'] hasn't processed with urldecode
> 3) use $shortcut['recordid'] for pageId if present
> 4) when JS builds returnUrl it uses document.location. This contains full
> URL with host information.
> All Urls are processed with top.rawurlencode, which is a JS-substitute for
> the same php-function.
>
> I extracted the host in this function.

I cannot judge the changes you made though. Altough I also found out, 
that the prolem has something to do with realurlencoding, I'm not to 
much into the shortcut menu code...

Kind regards Helmut


More information about the TYPO3-team-core mailing list