Updated htmlArea RTE version to 2.2.0
[Packages/TYPO3.CMS.git] / typo3 / tce_db.php
index f87a5ad..7e883e7 100644 (file)
@@ -246,8 +246,23 @@ $SOBE->init();
 // Include files?
 foreach($SOBE->include_once as $INC_FILE)      include_once($INC_FILE);
 
-$SOBE->initClipboard();
-$SOBE->main();
+$formprotection = t3lib_formprotection_Factory::get();
+
+if ($formprotection->validateToken(t3lib_div::_GP('formToken'), 'tceAction')) {
+       $SOBE->initClipboard();
+       $SOBE->main();
+
+               // This is done for the clear cache menu, so that it gets a new token
+               // making it possible to clear cache several times.
+       if (t3lib_div::_GP('ajaxCall')) {
+               $token = array();
+               $token['value'] = $formprotection->generateToken('tceAction');
+               $token['name'] = 'formToken';
+                       // This will be used by clearcachemenu.js to replace the token for the next call
+               echo t3lib_BEfunc::getUrlToken('tceAction');
+       }
+}
+$formprotection->persistTokens();
 $SOBE->finish();
 
 ?>