From 0161203d11a221120151d24c5307a5195104ea66 Mon Sep 17 00:00:00 2001 From: Pierrick Caillon Date: Tue, 31 Jan 2017 12:30:31 +0100 Subject: [PATCH] [BUGFIX] Wrong computed baseURL with FE editing RTE Frontend editing button for editing a content now url encode the return URL. The HTMLAREA baseURL computation now excludes query parameters and anchor from the document URL. Resolves: #79568 Related: #65705 Related: #65608 Releases: master Change-Id: I57ae5257ab62cff1398a0b2d088fe7ba3b126c76 Reviewed-on: https://review.typo3.org/51489 Tested-by: TYPO3com Reviewed-by: Mona Muzaffar Tested-by: Mona Muzaffar Reviewed-by: Benni Mack Tested-by: Benni Mack --- Classes/FrontendEditPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 187d1e1..284f3ba 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -298,7 +298,7 @@ class FrontendEditPanel { $width = MathUtility::forceIntegerInRange($this->backendUser->getTSConfigVal('options.feedit.popupWidth'), 690, 5000, 690); $height = MathUtility::forceIntegerInRange($this->backendUser->getTSConfigVal('options.feedit.popupHeight'), 500, 5000, 500); - $onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . PathUtility::getAbsoluteWebPath(ExtensionManagementUtility::siteRelPath('backend') . 'Resources/Private/Templates/Close.html')) . ',\'FEquickEditWindow\',\'width=' . $width . ',height=' . $height . ',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; + $onclick = 'vHWin=window.open(' . GeneralUtility::quoteJSvalue($url . '&returnUrl=' . rawurlencode(PathUtility::getAbsoluteWebPath(ExtensionManagementUtility::siteRelPath('backend') . 'Resources/Private/Templates/Close.html'))) . ',\'FEquickEditWindow\',\'width=' . $width . ',height=' . $height . ',status=0,menubar=0,scrollbars=1,resizable=1\');vHWin.focus();return false;'; return '' . $string . ''; }