Project

General

Profile

Bug #39683 » 39683-46.patch

Jochen Weiland, 2012-09-01 13:36

View differences:

class.t3lib_tcemain.php (revision )
}
break;
case 'double2':
$value = preg_replace('/[^0-9,\.-]/', '', $value);
$value = preg_replace('/[^0-9,\.\-]/', '', $value);
$negative = substr($value, 0, 1) == '-';
$value = strtr($value, array(',' => '.', '-' => ''));
if (strpos($value, '.') === FALSE) {
......
$value = preg_replace('/[^a-zA-Z0-9]/', '', $value);
break;
case 'alphanum_x':
$value = preg_replace('/[^a-zA-Z0-9_-]/', '', $value);
$value = preg_replace('/[^a-zA-Z0-9_\-]/', '', $value);
break;
case 'domainname':
if (!preg_match('/^[a-z0-9\.\-]*$/i', $value)) {
(2-2/4)