Bug #39683 » 39683-60b1.patch
DataHandler.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)) {
|
- « Previous
- 1
- 2
- 3
- 4
- Next »