Project

General

Profile

Actions

Bug #20272

closed

t3lib_cs->utf8_decode() does not check whether the target charset is utf8

Added by Ingo Renner over 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2009-04-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using t3lib_cs->utf8_decode() to decoding an utf8 string to another charset the function does not check whether the target charset is utf8. This can lead to scrambled content.

This can especially happen with backends running as utf8.

With kickstarter create a new extension containing a table with a single field f.e.. Then go to view result, you'll notice that the content for the locallang_db.xml file is not shown when running in a utf8 backend. This is because the content got scrambled.

A simple check for the target charset being utf8 solves the problem, the string can then be returned as is.
(issue imported from #M10838)


Files

10838.diff (465 Bytes) 10838.diff Administrator Admin, 2009-04-03 12:42
Actions

Also available in: Atom PDF