[BUGFIX] Fixed return URL in reports module 84/21984/2
authorTim Spiekerkoetter <tim.spiekerkoetter@hdnet.de>
Fri, 5 Jul 2013 22:07:24 +0000 (00:07 +0200)
committerFelix Kopp <felix-source@phorax.com>
Sat, 6 Jul 2013 10:37:41 +0000 (12:37 +0200)
Added urlencode to the returnUrl in the getAdminAccountStatus method.

Resolves: #43417
Releases: 6.2
Change-Id: I4e5d114dfcf2a71d94de25c40be8214b247843ab
Reviewed-on: https://review.typo3.org/21984
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Tim Lochm├╝ller
Tested-by: Tim Lochm├╝ller
Reviewed-by: Felix Kopp
Tested-by: Felix Kopp
typo3/sysext/reports/Classes/Report/Status/SecurityStatus.php

index d82c051..522bacd 100644 (file)
@@ -81,7 +81,7 @@ class SecurityStatus implements \TYPO3\CMS\Reports\StatusProviderInterface {
                        if (!$secure) {
                                $value = $GLOBALS['LANG']->getLL('status_insecure');
                                $severity = \TYPO3\CMS\Reports\Status::ERROR;
-                               $editUserAccountUrl = 'alt_doc.php?returnUrl=mod.php?M=tools_txreportsM1&edit[be_users][' . $row['uid'] . ']=edit';
+                               $editUserAccountUrl = 'alt_doc.php?returnUrl=' . urlencode('mod.php?M=system_ReportsTxreportsm1') . '&edit[be_users][' . $row['uid'] . ']=edit';
                                $message = sprintf($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:warning.backend_admin'), '<a href="' . $editUserAccountUrl . '">', '</a>');
                        }
                }