Project

General

Profile

Actions

Bug #15441

closed

strtoupper() broken some text in non-ascii

Added by old_hkdennis2k over 18 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-01-18
Due date:
% Done:

0%

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

Description

In Backend some where are using strtoupper to display a bolded title.

e.g. class.tx_cms_layout.php
function tt_content_drawColHeader($colName,$editParams,$newParams){
$out ='.............<b>'.htmlspecialchars(strtoupper($colName)).'</b>...........';
}

but, strtoupper() may destory the text since it may be multi-byte or non-ascii.

Suggestion replacement:
We don't have to consider any function exists in the server.
Using CSS to display text in uppercase. Server should not change on the text.

e.g.
$out='<b style="text-transform:uppercase">'.htmlspecialchars($colName).'</b>

(issue imported from #M2302)


Files

strtoupper_list.txt (67.9 KB) strtoupper_list.txt Administrator Admin, 2008-06-27 10:36
2302.diff (231 KB) 2302.diff Administrator Admin, 2008-06-27 11:50
Actions

Also available in: Atom PDF