Bug #24698 » 17184_v1.diff
t3lib/class.t3lib_pagerenderer.php (Arbeitskopie) | ||
---|---|---|
* @return void
|
||
*/
|
||
public function addExtDirectCode() {
|
||
$formprotection = t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection');
|
||
$token = $formprotection->generateToken('extDirect');
|
||
$formprotection->persistTokens();
|
||
$token = '';
|
||
if (TYPO3_MODE === 'BE') {
|
||
$formprotection = t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection');
|
||
$token = $formprotection->generateToken('extDirect');
|
||
$formprotection->persistTokens();
|
||
}
|
||
// Note: we need to iterate thru the object, because the addProvider method
|
||
// does this only with multiple arguments
|
t3lib/extjs/class.t3lib_extjs_extdirectrouter.php (Arbeitskopie) | ||
---|---|---|
$request = array($request);
|
||
}
|
||
$validToken = FALSE;
|
||
$validToken = (is_object($GLOBALS['BE_USER']) ? FALSE : TRUE);
|
||
$firstCall = TRUE;
|
||
foreach ($request as $index => $singleRequest) {
|
||
$response[$index] = array(
|
||
... | ... | |
);
|
||
$token = array_pop($singleRequest->data);
|
||
if ($firstCall) {
|
||
if ($firstCall && is_object($GLOBALS['BE_USER'])) {
|
||
$firstCall = FALSE;
|
||
$formprotection = t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection');
|
||
$validToken = $formprotection->validateToken($token, 'extDirect');
|