Bug #39683 » 39683-47.patch
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)) {
|