[TYPO3-core] RFC #10838: t3lib_cs->utf8_decode() does not check whether the target charset is utf8

Ingo Renner ingo at typo3.org
Fri Apr 3 13:58:47 CEST 2009


Dmitry Dulepov wrote:

> I propose to change:
>
> if ($charset === 'utf-8')	return $str;
>
> to:
>
> if (strcasecmp($charset, 'utf-8') === 0) {
> 	return $str;
> }

ok with the braces, strcasecmp() is not necessarry though as "utf-8" is 
the way it's used consistently through out the core. Other than that it 
was just a simple copy and paste from utf8_encode ;)


Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2



More information about the TYPO3-team-core mailing list