Bug #24786 ยป 17284.diff

Administrator Admin, 2011-01-25 03:50

View differences:

typo3/ajax.php (working copy)
78 78

  
79 79
	// outputting the content (and setting the X-JSON-Header)
80 80
$ajaxObj->render();
81

  
81
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
82 82
?>
typo3/classes/class.ajaxlogin.php (working copy)
46 46
		if ($GLOBALS['BE_USER']->user['uid']) {
47 47
			$formprotection = t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection');
48 48
			$token = $formprotection->generateToken('extDirect');
49
			$formprotection->persistTokens();
50 49

  
51 50
			$json = array(
52 51
				'success' => TRUE,
typo3/mod.php (working copy)
66 66
	die('Value "' . htmlspecialchars($temp_M) . '" for "M" was not found as a module');
67 67
}
68 68

  
69
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
70

  
71 69
?>
typo3/template.php (working copy)
430 430
				t3lib_BEfunc::getUrlToken('tceAction') .
431 431
				'&prErr=1&uPT=1';
432 432

  
433
		t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
434 433
		return $commandUrl;
435 434
	}
436 435

  
......
927 926

  
928 927
<!-- Wrapping DIV-section for whole page END -->
929 928
</div>':'') . $this->endOfPageJsBlock ;
930

  
929
			t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
931 930
		}
932 931

  
933 932

  
......
1570 1569
		$af_content = '<select name="cacheCmd" onchange="'.htmlspecialchars($onChange).'">'.implode('',$opt).'</select>';
1571 1570

  
1572 1571
		if (count($opt)>1)	{
1573
			t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
1574 1572
			return $af_content;
1575 1573
		}
1576 1574
	}
typo3/db_new.php (working copy)
733 733
$SOBE->init();
734 734
$SOBE->main();
735 735
$SOBE->printContent();
736
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
737 736

  
738 737
?>
typo3/wizard_rte.php (working copy)
339 339
$SOBE->init();
340 340
$SOBE->main();
341 341
$SOBE->printContent();
342
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
343 342

  
344 343
?>
typo3/sysext/lowlevel/dbint/index.php (working copy)
694 694
$SOBE->init();
695 695
$SOBE->main();
696 696
$SOBE->printContent();
697
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
698 697

  
699 698
?>
typo3/sysext/cms/layout/db_layout.php (working copy)
1413 1413
$SOBE->clearCache();
1414 1414
$SOBE->main();
1415 1415
$SOBE->printContent();
1416
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
1417 1416

  
1418 1417
?>
typo3/sysext/info/mod1/index.php (working copy)
233 233

  
234 234
$SOBE->main();
235 235
$SOBE->printContent();
236
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
236

  
237 237

  
238 238
?>
typo3/sysext/taskcenter/task/index.php (working copy)
534 534

  
535 535
$SOBE->main();
536 536
$SOBE->printContent();
537
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
538 537

  
539 538
?>
typo3/sysext/perm/mod1/index.php (working copy)
851 851
$SOBE->init();
852 852
$SOBE->main();
853 853
$SOBE->printContent();
854
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
855 854

  
856 855
?>
typo3/sysext/version/cm1/index.php (working copy)
1854 1854
$SOBE->main();
1855 1855
$SOBE->printContent();
1856 1856

  
1857
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
1858

  
1859 1857
?>
typo3/sysext/version/ws/index.php (working copy)
749 749
			// $BE_USER->isInWebMount() to check mount points.
750 750
		$mountpointList = $GLOBALS['BE_USER']->groupData['webmounts'];
751 751
			// If there are DB mountpoints in the workspace record,
752
			// then only show the ones that are allowed there (and that are in the users' webmounts) 
752
			// then only show the ones that are allowed there (and that are in the users' webmounts)
753 753
		if (trim($wksp['db_mountpoints'])) {
754 754
			$userMountpoints = explode(',', $mountpointList);
755
				// now filter the users' to only keep the mountpoints 
755
				// now filter the users' to only keep the mountpoints
756 756
				// that are also in the workspaces' db_mountpoints
757 757
			$workspaceMountpoints = explode(',', $wksp['db_mountpoints']);
758 758
			$filteredMountpoints = array_intersect($userMountpoints, $workspaceMountpoints);
......
803 803
			// $BE_USER->isInWebMount() to check mount points.
804 804
		$mountpointList = implode(',', $GLOBALS['BE_USER']->groupData['filemounts']);
805 805
			// If there are file mountpoints in the workspace record,
806
			// then only show the ones that are allowed there (and that are in the users' file mounts) 
806
			// then only show the ones that are allowed there (and that are in the users' file mounts)
807 807
		if (trim($wksp['file_mountpoints'])) {
808 808
			$userMountpoints = explode(',', $mountpointList);
809
				// now filter the users' to only keep the mountpoints 
809
				// now filter the users' to only keep the mountpoints
810 810
				// that are also in the workspaces' file_mountpoints
811 811
			$workspaceMountpoints = explode(',', $wksp['file_mountpoints']);
812 812
			$filteredMountpoints = array_intersect($userMountpoints, $workspaceMountpoints);
......
1091 1091
$SOBE->main();
1092 1092
$SOBE->printContent();
1093 1093

  
1094
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
1095

  
1096 1094
?>
typo3/sysext/recordlist/mod1/index.php (working copy)
513 513
$SOBE->clearCache();
514 514
$SOBE->main();
515 515
$SOBE->printContent();
516
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
517 516

  
518 517
?>
typo3/move_el.php (working copy)
466 466
$SOBE->init();
467 467
$SOBE->main();
468 468
$SOBE->printContent();
469
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
470 469

  
471 470
?>
typo3/alt_menu.php (working copy)
224 224
$SOBE->init();
225 225
$SOBE->main();
226 226
$SOBE->printContent();
227
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
228 227

  
229 228
?>
typo3/alt_doc.php (working copy)
1503 1503
$SOBE->init();
1504 1504
$SOBE->main();
1505 1505
$SOBE->printContent();
1506
$formprotection->persistTokens();
1507 1506

  
1508 1507
?>
typo3/index.php (working copy)
399 399
			} else {
400 400
				$formprotection = t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection');
401 401
				$token = $formprotection->generateToken('extDirect');
402
				$formprotection->persistTokens();
403 402
				$TBE_TEMPLATE->JScode.=$TBE_TEMPLATE->wrapScriptTags('
404 403
					if (parent.opener && (parent.opener.busy || parent.opener.TYPO3.loginRefresh)) {
405 404
						if (parent.opener.TYPO3.loginRefresh) {
typo3/alt_clickmenu.php (working copy)
1776 1776

  
1777 1777
$SOBE->main();
1778 1778
$SOBE->printContent();
1779
t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection')->persistTokens();
1779

  
1780 1780
?>
t3lib/class.t3lib_pagerenderer.php (working copy)
949 949
		if (TYPO3_MODE === 'BE') {
950 950
			$formprotection = t3lib_formprotection_Factory::get('t3lib_formprotection_BackendFormProtection');
951 951
			$token = $formprotection->generateToken('extDirect');
952
			$formprotection->persistTokens();
953 952
		}
954 953

  
955 954
			// Note: we need to iterate thru the object, because the addProvider method
    (1-1/1)