[TYPO3-core] RFC fix for bug #2508

Wolfgang Klinger wolfgang at stufenlos.net
Tue Feb 14 13:40:27 CET 2006


 *hiya!*

 Type: bugfix

 t3lib/class.t3lib_tcemain.php uses hardcoded quotes
 BT reference: http://bugs.typo3.org/view.php?id=2508


 bye
 Wolfgang

-------------- next part --------------
--- TYPO3core/t3lib/class.t3lib_tcemain.php	2006-02-14 13:31:14.000000000 +0100
+++ TYPO3core_testing/t3lib/class.t3lib_tcemain.php	2006-02-14 13:27:26.000000000 +0100
@@ -4473,7 +4473,7 @@
 	function clearHistory($maxAgeSeconds=604800,$table)	{
 		$tstampLimit = $maxAgeSeconds ? time()-$maxAgeSeconds : 0;
 
-		$GLOBALS['TYPO3_DB']->exec_DELETEquery('sys_history', 'tstamp<'.intval($tstampLimit).' AND tablename="'.$table.'"');
+		$GLOBALS['TYPO3_DB']->exec_DELETEquery('sys_history', 'tstamp<'.intval($tstampLimit).' AND tablename='.$GLOBALS['TYPO3_DB']->fullQuoteStr($table, 'sys_history'));
 		}
 
 	/**


More information about the TYPO3-team-core mailing list