Project

General

Profile

Bug #17272 » bug_5550_v2.patch

Administrator Admin, 2007-05-03 11:18

View differences:

t3lib/class.t3lib_tcemain.php (working copy)
* @return string Modified $value
*/
function checkValue_input_Eval($value,$evalArray,$is_in) {
global $LANG;
$res = Array();
$newValue = $value;
$set = true;
......
$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.
$value = $LANG->csConvObj->conv_case($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 = $LANG->csConvObj->conv_case($LANG->charSet, $value, 'toLower');
break;
case 'required':
if (!$value) {$set=0;}
(2-2/2)