[TYPO3-mvc] Transition Guide for Persistance Rewrite

Steffen Kamper info at sk-typo3.de
Tue Aug 4 17:09:24 CEST 2009


Hi Jochen,

Jochen Rau schrieb:
> 
> Never say "never" ;-)
> 
> Unfortunately $GLOBALS['TYPO3_DB']->fullQuoteStr() doesn't work here. We 
> get the string escaped twice (index_ts.php AND fullQuoteString()). This 
> results in having "The Po\'st #1" in the output after changing the title 
> to "The Po'st #1" in the FE.
> 
> IMO this is at least a documentation issue.
> 

you could remove the slashes before further process:

if (!get_magic_quotes_gpc())	{
	t3lib_div::stripSlashesOnArray($_GET);
	t3lib_div::stripSlashesOnArray($_POST);
	
}

the fullQuoteString() is needed anyway to do the right quoting for mysql 
using native method.

vg Steffen


More information about the TYPO3-project-typo3v4mvc mailing list