[BUGFIX] Fix script URLs for traditional modules 07/33707/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Thu, 30 Oct 2014 16:44:11 +0000 (17:44 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 1 Nov 2014 21:09:54 +0000 (22:09 +0100)
commit7c3b83f8223c43358e5d5028eb6a4917e6989c27
treeec3829e9d55e745994efcdb76a547b79ea24a866
parent8653ca5a2b87b97934e40fa719ef112206257791
[BUGFIX] Fix script URLs for traditional modules

The introduction of CSRF protection for backend modules
introduced a regression for traditional modules.

Previously the script was calculated correctly if
not provided. Now API calls without providing the script
are assumed to be mod.php dispatched.

Fix that by checking if the M GET argument was sent
and fall back to traditional URL calculation.

Resolves: #62569
Releases: 6.2, master
Change-Id: I26d16acb513d678f117e0b645fe3eefebf909e3d
Reviewed-on: http://review.typo3.org/33707
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Classes/Utility/BackendUtility.php