Commit e1680e1b authored by Markus Klein's avatar Markus Klein
Browse files

[BUGFIX] Fix invalid URL in EditDocumentController

The form action generated in EditDocumentController now properly
resolves ? and & characters clashing together.

Releases: master
Resolves: #66382
Change-Id: I038e2179229cbe3a65dbc1731fd6db789c2d10f9
Reviewed-on: http://review.typo3.org/38638


Reviewed-by: Mathias Schreiber's avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber's avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: default avatarMarkus Klein <klein.t3@reelworx.at>
Tested-by: default avatarMarkus Klein <klein.t3@reelworx.at>
parent d94e43f0
......@@ -634,7 +634,7 @@ class EditDocumentController {
$this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
// Set other internal variables:
$this->R_URL_getvars['returnUrl'] = $this->retUrl;
$this->R_URI = $this->R_URL_parts['path'] . '?' . GeneralUtility::implodeArrayForUrl('', $this->R_URL_getvars);
$this->R_URI = $this->R_URL_parts['path'] . '?' . ltrim(GeneralUtility::implodeArrayForUrl('', $this->R_URL_getvars), '&');
// MENU-ITEMS:
// If array, then it's a selector box menu
// If empty string it's just a variable, that'll be saved.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment