Bug #17272 » bug_5550.patch
t3lib/class.t3lib_tcemain.php (working copy) | ||
---|---|---|
$value = trim($value);
|
||
break;
|
||
case 'upper':
|
||
$value = strtoupper($value);
|
||
# $value = strtr($value, '', ''); // WILL make trouble with other charsets than ISO-8859-1, so what do we do here? PHP-function which can handle this for other charsets? Currently the browsers JavaScript will fix it.
|
||
$csConv = t3lib_div::makeInstance('t3lib_cs');
|
||
$value = $csConv->conv_case($GLOBALS['LANG']->charSet, $value, 'toUpper');
|
||
break;
|
||
case 'lower':
|
||
$value = strtolower($value);
|
||
# $value = strtr($value, '', ''); // WILL make trouble with other charsets than ISO-8859-1, so what do we do here? PHP-function which can handle this for other charsets? Currently the browsers JavaScript will fix it.
|
||
$csConv = t3lib_div::makeInstance('t3lib_cs');
|
||
$value = $csConv->conv_case($GLOBALS['LANG']->charSet, $value, 'toLower');
|
||
break;
|
||
case 'required':
|
||
if (!$value) {$set=0;}
|